quantum-space-buddies/QSB/TimeSync/Messages/SetSecondsRemainingMessage.cs

13 lines
357 B
C#
Raw Normal View History

2022-08-14 23:35:19 +00:00
using QSB.Messaging;
namespace QSB.TimeSync.Messages;
/// <summary>
/// sent from non-host to host
/// </summary>
public class SetSecondsRemainingMessage : QSBMessage<float>
{
public SetSecondsRemainingMessage(float secondsRemaining) : base(secondsRemaining) => To = 0;
2022-08-29 05:21:20 +00:00
public override void OnReceiveRemote() => TimeLoop.SetSecondsRemaining(Data);
2022-08-14 23:35:19 +00:00
}