CommandCallbackType ReceiveMartialArtsRoomList(byte[] dataBuffer, int socketID) { TraceUtil.Log("收到练功房房间列表:" + dataBuffer[0]); SMSGEctypePraicticeList_SC sMSGEctypePraicticeList_SC = SMSGEctypePraicticeList_SC.ParsePackage(dataBuffer); UIEventManager.Instance.TriggerUIEvent(UIEventType.MartialArtsRoomList, sMSGEctypePraicticeList_SC); return(CommandCallbackType.Continue); }
void ResetCurrentRoomListPanel(object obj) { SMSGEctypePraicticeList_SC sMSGEctypePraicticeList_SC = (SMSGEctypePraicticeList_SC)obj; for (int i = 0; i < SingleMartialArtsRoomPanelList.Count; i++) { if (i < sMSGEctypePraicticeList_SC.EctypePraicticeList.Count) { SingleMartialArtsRoomPanelList[i].Show(this, sMSGEctypePraicticeList_SC.EctypePraicticeList[i]); } else { SingleMartialArtsRoomPanelList[i].Close(); } } }