public void TranslateMessage(int clientID, MessageConnectToServerRequest message)
 {
     if (TranslatedMessageToMessageConnectToServerRequest != null)
     {
         TranslatedMessageToMessageConnectToServerRequest(clientID, message);
     }
 }
Example #2
0
        public void OnClientMessage_MessageConnectToServerRequest(int clientID, MessageConnectToServerRequest message, GameRoomManager gameRoomManager, GameClientManager gameClientManager)
        {
            var gameClient = gameClientManager.GetGameClientFromClientID(clientID);

            gameClient.Name = message.Name;
            var messageResponseWithClientID = new MessageConnectToServerResponse(clientID, message.Name);

            SendDataToClient(gameClient, messageResponseWithClientID);
        }
Example #3
0
 private void TheClientToServerMeossageTranslator_TranslatedMessageToMessageConnectToServerRequest(object clientID, MessageConnectToServerRequest message)
 {
     TheClientToServerMessenger.OnClientMessage_MessageConnectToServerRequest((int)clientID, message, TheGameRoomManager, TheGameClientManager);
 }