Ejemplo n.º 1
0
    void ILogicHandleMessage.ClientHandleMessage(int msgID, MemoryStream data)
    {
        CNetRecvMsg clientNetMsg = new CNetRecvMsg();

        clientNetMsg.m_nMsgID  = msgID;
        clientNetMsg.m_DataMsg = data;

        ClientHandleMessage(clientNetMsg);
    }
Ejemplo n.º 2
0
 void ClientHandleMessage(CNetRecvMsg msg)
 {
     if (msg.m_nMsgID >= 0 && msg.m_nMsgID < m_HandleMap.Length)
     {
         OnHandleOneMessage handler = m_HandleMap[msg.m_nMsgID];
         if (handler != null)
         {
             handler(msg);
         }
         else
         {
             LKDebug.LogError("This Message could not be processed :" + msg.m_nMsgID);
         }
     }
 }
Ejemplo n.º 3
0
 private void S2C_PING_TIME_HANDLER(CNetRecvMsg msg)
 {
     PingManager.Instance.ResetPing();
 }