public ClientMessageHandler(GameClient pSession)
        {
            mSession = pSession;
            mRequestHandlers = new RequestHandler[HIGHEST_MESSAGEID + 1];

            Response = new ServerMessage(0);
        }
        /// <summary>
        /// Destroys all the resources in the ClientMessageHandler.
        /// </summary>
        public void Destroy()
        {
            mSession = null;
            mRequestHandlers = null;

            Request = null;
            Response = null;
        }
Exemple #3
0
        public void StartClient(uint clientID)
        {
            GameClient client = new GameClient(clientID);
            mClients.Add(clientID, client);

            client.StartConnection();
        }
 public MessengerComponent(GameClient client)
 {
     mClient = client;
     mBuddies = new List<MessengerBuddy>();
 }