/// <summary> /// Receives the specicified <see cref="NetMessage"/>. /// </summary> public override void ReceiveMessage(NetMessage message) { if (message.GetSessionId() == null) { Logging.Warning("NetChatMessageManager::receiveMessage session id is not defined"); return; } switch (message.GetMessageType()) { case 10301: this.ServerUnboundMessageReceived((ServerUnboundMessage)message); break; case 10302: this.ServerBoundMessageReceived((ServerBoundMessage)message); break; case 10303: this.UpdateServerEndPointMessageReceived((UpdateServerEndPointMessage)message); break; case 10400: this.ForwardPiranhaMessageReceived((ForwardPiranhaMessage)message); break; case 20211: this.AvatarEntryMessageReceived((AvatarEntryMessage)message); break; } }
/// <summary> /// Receives the specicified <see cref="NetMessage"/>. /// </summary> public override void ReceiveMessage(NetMessage message) { if (message.GetSessionId() == null) { Logging.Warning("NetAccountMessageManager::receiveMessage session id is not defined"); return; } switch (message.GetMessageType()) { case 10100: this.LoginClientMessageReceived((LoginClientMessage)message); break; case 10101: this.CreateAccountBanMessageReceived((CreateAccountBanMessage)message); break; case 10102: this.RevokeAccountBanMessageReceived((RevokeAccountBanMessage)message); break; case 10301: this.ServerUnboundMessageReceived((ServerUnboundMessage)message); break; case 10600: this.ExecuteAdminCommandMessageReceived((ExecuteAdminCommandMessage)message); break; default: Logging.Warning("NetAccountMessageManager::receiveMessage no case for message type " + message.GetType().Name); break; } }
/// <summary> /// Sends the response <see cref="NetMessage"/> to the requester. /// </summary> internal static void SendResponseMessage(NetMessage requestMessage, NetMessage responseMessage) { NetMessageManager.SendMessage(requestMessage.GetServiceNodeType(), requestMessage.GetServiceNodeId(), requestMessage.GetSessionId(), responseMessage); }