14 lines
370 B
C#
Raw Normal View History

2021-12-22 18:27:12 -08:00
using QSB.Messaging;
2021-12-23 13:57:33 -08:00
namespace QSB.ClientServerStateSync.Messages
2021-12-22 18:27:12 -08:00
{
2022-01-26 20:35:43 -08:00
internal class ServerStateMessage : QSBMessage<ServerState>
2021-12-22 18:27:12 -08:00
{
public ServerStateMessage(ServerState state) => Value = state;
public override void OnReceiveLocal() => OnReceiveRemote();
public override void OnReceiveRemote()
=> ServerStateManager.Instance.ChangeServerState(Value);
}
}