mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-08 09:41:07 +00:00
14 lines
370 B
C#
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);
|
|
}
|
|
}
|