コード例 #1
0
 public void TranslateMessage(int clientID, MessageSendUserInputRequest message)
 {
     if (TranslatedMessageSendUserInputRequest != null)
     {
         TranslatedMessageSendUserInputRequest(clientID, message);
     }
 }
コード例 #2
0
ファイル: Server.cs プロジェクト: mheloky/MultiplayerBase
 private void TheClientToServerMeossageTranslator_TranslatedMessageSendUserInputRequest(object clientID, MessageSendUserInputRequest e)
 {
     TheClientToServerMessenger.OnClientMessage_MessageSendUserInputRequest((int)clientID, e, TheGameRoomManager, TheGameClientManager);
 }
コード例 #3
0
        public void OnClientMessage_MessageSendUserInputRequest(int clientID, MessageSendUserInputRequest message, GameRoomManager gameRoomManager, GameClientManager gameClientManager)
        {
            var roomID = gameRoomManager.GetClientRoomID(clientID);

            SendDataToClientsInRoom(roomID, gameRoomManager, gameClientManager, new MessageSendUserInputResponse(clientID, message.TheUserInput));
        }