using QSB.Messaging;
namespace QSB.ClientServerStateSync.Messages;
///
/// sets the state both locally and remotely
///
internal class ServerStateMessage : QSBMessage
{
public ServerStateMessage(ServerState state) => Data = state;
public override void OnReceiveLocal() => OnReceiveRemote();
public override void OnReceiveRemote()
=> ServerStateManager.Instance.ChangeServerState(Data);
}