コード例 #1
0
        public void handleMsg(MsgRouteBase msg)
        {
            foreach(var item in m_dispList)
            {
                item.handleMsg(msg);
            }

            Ctx.m_instance.m_poolSys.deleteObj(msg);
        }
コード例 #2
0
        public void handleMsg(MsgRouteBase msg)
        {
            foreach (var item in m_dispList)
            {
                item.handleMsg(msg);
            }

            Ctx.m_instance.m_poolSys.deleteObj(msg);
        }
コード例 #3
0
 protected void handleSocketOpened(MsgRouteBase msg)
 {
     if (Ctx.m_instance.m_loginSys.get_LoginState() == LoginState.eLoginingLoginServer)
     {
         (Ctx.m_instance.m_loginSys as LoginSys).m_loginFlowHandle.onLoginServerSocketOpened();
     }
     else if(Ctx.m_instance.m_loginSys.get_LoginState() == LoginState.eLoginingGateServer)
     {
         (Ctx.m_instance.m_loginSys as LoginSys).m_loginFlowHandle.onGateServerSocketOpened();
     }
 }
コード例 #4
0
 public virtual void handleMsg(MsgRouteBase msg)
 {
     if (m_id2HandleDic.ContainsKey((int)msg.m_msgID))
     {
         m_id2HandleDic[(int)msg.m_msgID](msg);
     }
     else
     {
         Ctx.m_instance.m_logSys.log(string.Format(Ctx.m_instance.m_langMgr.getText(LangTypeId.eMsgRoute1, LangItemID.eItem1), (int)msg.m_msgID));
     }
 }
コード例 #5
0
 public virtual void handleMsg(MsgRouteBase msg)
 {
     if (m_id2HandleDic.ContainsKey((int)msg.m_msgID))
     {
         m_id2HandleDic[(int)msg.m_msgID](msg);
     }
     else
     {
         Ctx.m_instance.m_logSys.log(string.Format(Ctx.m_instance.m_langMgr.getText(LangTypeId.eMsgRoute1, LangItemID.eItem1), (int)msg.m_msgID));
     }
 }
コード例 #6
0
 public virtual void handleMsg(MsgRouteBase msg)
 {
     string textStr = "";
     if (m_id2DispDic.ContainsKey((int)msg.m_msgType))
     {
         textStr = Ctx.m_instance.m_langMgr.getText(LangTypeId.eMsgRoute1, LangItemID.eItem2);
         Ctx.m_instance.m_logSys.log(string.Format(textStr, (int)msg.m_msgType));
         m_id2DispDic[(int)msg.m_msgType].handleMsg(msg);
     }
     else
     {
         textStr = Ctx.m_instance.m_langMgr.getText(LangTypeId.eMsgRoute1, LangItemID.eItem3);
         Ctx.m_instance.m_logSys.log(string.Format(textStr, (int)msg.m_msgID));
     }
 }
コード例 #7
0
        public virtual void handleMsg(MsgRouteBase msg)
        {
            string textStr = "";

            if (m_id2DispDic.ContainsKey((int)msg.m_msgType))
            {
                textStr = Ctx.m_instance.m_langMgr.getText(LangTypeId.eMsgRoute1, LangItemID.eItem2);
                Ctx.m_instance.m_logSys.log(string.Format(textStr, (int)msg.m_msgType));
                m_id2DispDic[(int)msg.m_msgType].handleMsg(msg);
            }
            else
            {
                textStr = Ctx.m_instance.m_langMgr.getText(LangTypeId.eMsgRoute1, LangItemID.eItem3);
                Ctx.m_instance.m_logSys.log(string.Format(textStr, (int)msg.m_msgID));
            }
        }
コード例 #8
0
ファイル: ResLoadMgr.cs プロジェクト: zhutaorun/unitygame
 // 资源加载完成,触发下一次加载
 protected void onMsgRouteResLoad(MsgRouteBase msg)
 {
     DataLoadItem loadItem = (msg as LoadedWebResMR).m_task as DataLoadItem;
     loadItem.handleResult();
 }
コード例 #9
0
 protected void threadLog(MsgRouteBase msg)
 {
     Ctx.m_instance.m_logSys.log((msg as ThreadLogMR).m_logSys);
 }
コード例 #10
0
        // 资源加载完成,触发下一次加载
        protected void onMsgRouteResLoad(MsgRouteBase msg)
        {
            DataLoadItem loadItem = (msg as LoadedWebResMR).m_task as DataLoadItem;

            loadItem.handleResult();
        }