quantum-space-buddies/QSB/ClientServerStateSync/Messages/ServerStateMessage.cs
2021-12-23 13:57:33 -08:00

16 lines
409 B
C#

using QSB.Messaging;
namespace QSB.ClientServerStateSync.Messages
{
internal class ServerStateMessage : QSBEnumMessage<ServerState>
{
public ServerStateMessage(ServerState state) => Value = state;
public ServerStateMessage() { }
public override void OnReceiveLocal() => OnReceiveRemote();
public override void OnReceiveRemote()
=> ServerStateManager.Instance.ChangeServerState(Value);
}
}