mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 00:32:43 +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));
|
|
}
|