15 lines
431 B
C#
Raw Normal View History

2021-12-22 18:27:12 -08:00
using QSB.Messaging;
2022-03-02 19:46:33 -08:00
namespace QSB.ClientServerStateSync.Messages;
/// <summary>
/// sets the state both locally and remotely
/// </summary>
2023-07-28 19:30:57 +01:00
public class ServerStateMessage : QSBMessage<ServerState>
2021-12-22 18:27:12 -08:00
{
2022-03-10 17:57:50 -08:00
public ServerStateMessage(ServerState state) : base(state) { }
2021-12-22 18:27:12 -08:00
2022-03-02 19:46:33 -08:00
public override void OnReceiveLocal() => OnReceiveRemote();
public override void OnReceiveRemote()
=> ServerStateManager.Instance.ChangeServerState(Data);
}