public void TranslateMessage(int clientID, MessageSendUserInputRequest message) { if (TranslatedMessageSendUserInputRequest != null) { TranslatedMessageSendUserInputRequest(clientID, message); } }
private void TheClientToServerMeossageTranslator_TranslatedMessageSendUserInputRequest(object clientID, MessageSendUserInputRequest e) { TheClientToServerMessenger.OnClientMessage_MessageSendUserInputRequest((int)clientID, e, TheGameRoomManager, TheGameClientManager); }
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)); }