public override void OnReceiveCoreMessage(ServerCoreMessage message) { switch (message.GetMessageType()) { case ServerMessageType.SERVER_PERFORMANCE: ServerMessageManager.SendMessage(new ServerPerformanceDataMessage(), message.Sender); break; } }
public override void OnReceiveCoreMessage(ServerCoreMessage message) { switch (message.GetMessageType()) { case ServerMessageType.SERVER_PERFORMANCE: ServerMessageManager.SendMessage(new ServerPerformanceDataMessage(), message.Sender); break; case ServerMessageType.SCORING_SYNC: ScoringManager.OnScoringSyncMessageReceived((ScoringSyncMessage)message); break; } }
public override void OnReceiveCoreMessage(ServerCoreMessage message) { switch (message.GetMessageType()) { case ServerMessageType.SERVER_PERFORMANCE: ServerMessageManager.SendMessage(new ServerPerformanceDataMessage { SessionCount = GameModeClusterManager.SessionCount, ClusterCount = GameModeClusterManager.ClusterCount }, message.Sender); GameModeClusterManager.StartPing(); break; } }
internal static bool ReceiveCoreMessage(ServerCoreMessage message) { switch (message.GetMessageType()) { case ServerMessageType.PING: ServerMessageManager.SendMessage(new PongMessage(), message.Sender); return(true); case ServerMessageType.SERVER_STATUS: ServerStatusMessage serverStatusMessage = (ServerStatusMessage)message; ServerStatus.SetStatus(serverStatusMessage.Type, serverStatusMessage.Time, serverStatusMessage.NextTime); return(true); default: return(false); } }
public override void OnReceiveCoreMessage(ServerCoreMessage message) { switch (message.GetMessageType()) { case ServerMessageType.PONG: ServerManager.OnPongMessageReceived((PongMessage)message); break; case ServerMessageType.SERVER_PERFORMANCE: ServerMessageManager.SendMessage(new ServerPerformanceDataMessage(), message.SenderType, message.SenderId); break; case ServerMessageType.SERVER_PERFORMANCE_DATA: ServerManager.OnServerPerformanceDataMessageReceived((ServerPerformanceDataMessage)message); break; case ServerMessageType.CLUSTER_PERFORMANCE_DATA: ServerManager.OnClusterPerformanceDataMessageReceived((ClusterPerformanceDataMessage)message); break; case ServerMessageType.SERVER_LOG: LogManager.OnServerLogMessage((ServerLogMessage)message); break; case ServerMessageType.GAME_LOG: LogManager.OnGameLogMessage((GameLogMessage)message); break; case ServerMessageType.ASK_FOR_SERVER_STATUS: ServerMessageManager.SendMessage(new ServerStatusMessage { Type = ServerStatus.Status, Time = ServerStatus.Time, NextTime = ServerStatus.NextTime }, message.Sender); break; } }
public abstract void OnReceiveCoreMessage(ServerCoreMessage message);