quantum-space-buddies/QSB/ClientServerStateSync/Messages/ServerStateMessage.cs
2022-01-26 20:35:43 -08:00

14 lines
370 B
C#

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