public void handleMsg(MsgRouteBase msg) { foreach(var item in m_dispList) { item.handleMsg(msg); } Ctx.m_instance.m_poolSys.deleteObj(msg); }
public void handleMsg(MsgRouteBase msg) { foreach (var item in m_dispList) { item.handleMsg(msg); } Ctx.m_instance.m_poolSys.deleteObj(msg); }
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(); } }
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)); } }
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)); } }
// 资源加载完成,触发下一次加载 protected void onMsgRouteResLoad(MsgRouteBase msg) { DataLoadItem loadItem = (msg as LoadedWebResMR).m_task as DataLoadItem; loadItem.handleResult(); }
protected void threadLog(MsgRouteBase msg) { Ctx.m_instance.m_logSys.log((msg as ThreadLogMR).m_logSys); }