2021-12-26 18:55:54 -08:00

14 lines
374 B
C#

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