mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
15 lines
431 B
C#
15 lines
431 B
C#
using QSB.Messaging;
|
|
|
|
namespace QSB.ClientServerStateSync.Messages;
|
|
|
|
/// <summary>
|
|
/// sets the state both locally and remotely
|
|
/// </summary>
|
|
public class ServerStateMessage : QSBMessage<ServerState>
|
|
{
|
|
public ServerStateMessage(ServerState state) : base(state) { }
|
|
|
|
public override void OnReceiveLocal() => OnReceiveRemote();
|
|
public override void OnReceiveRemote()
|
|
=> ServerStateManager.Instance.ChangeServerState(Data);
|
|
} |