Example #1
0
    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);
    }
Example #2
0
        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();
                }
            }
        }