protected void psstRetCardGroupListInfoUserCmd(ByteBuffer msg) { stRetCardGroupListInfoUserCmd cmd = new stRetCardGroupListInfoUserCmd(); cmd.derialize(msg); Ctx.m_instance.m_logSys.log(string.Format("对战模式界面收到卡组列表信息,数量 {0}", cmd.info.Count)); // 更新数据 Ctx.m_instance.m_dataPlayer.m_dataCard.psstRetCardGroupListInfoUserCmd(cmd.info); // 更新界面 IUITuJian uiSC = Ctx.m_instance.m_uiMgr.getForm(UIFormID.eUITuJian) as IUITuJian; if (uiSC != null && uiSC.isVisible()) { uiSC.psstRetCardGroupListInfoUserCmd(); } IUIJobSelect uiMS = Ctx.m_instance.m_uiMgr.getForm(UIFormID.eUIJobSelect) as IUIJobSelect; if (uiMS != null && uiMS.isVisible()) { uiMS.updateHeroList(); } }
// 返回匹配结果 protected void psstRetHeroFightMatchUserCmd(ByteBuffer msg) { stRetHeroFightMatchUserCmd cmd = new stRetHeroFightMatchUserCmd(); cmd.derialize(msg); // 显示匹配结果 IUIJobSelect uiMS = Ctx.m_instance.m_uiMgr.getForm(UIFormID.eUIJobSelect) as IUIJobSelect; if (uiMS != null && uiMS.isVisible()) { uiMS.psstRetHeroFightMatchUserCmd(cmd); } }