mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-10 15:53:19 +00:00
16 lines
409 B
C#
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);
|
|
}
|
|
}
|