mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-30 03:32:47 +00:00
14 lines
403 B
C#
14 lines
403 B
C#
|
using QSB.Messaging;
|
|||
|
using QSB.Patches;
|
|||
|
|
|||
|
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() => QSBPatch.RemoteCall(() => TimeLoop.SetSecondsRemaining(Data));
|
|||
|
}
|