quantum-space-buddies/QSB/TimeSync/Messages/SetSecondsRemainingMessage.cs
2022-08-28 22:21:20 -07:00

13 lines
357 B
C#

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;
public override void OnReceiveRemote() => TimeLoop.SetSecondsRemaining(Data);
}