Beispiel #1
0
    public void ResetInfo()
    {
        OnClear();
        //产生事件
        tagCharListChange pEvent = new tagCharListChange();

        MsgEventHandle.HandleMsg(pEvent);

        tagCharContextChange pEvent2 = new tagCharContextChange(0);

        MsgEventHandle.HandleMsg(pEvent2);
    }
Beispiel #2
0
    bool HandleLoadAllCharInfo(NetCmdBase obj)
    {
        LC_Cmd_LoadAllCharInfo ncb = (LC_Cmd_LoadAllCharInfo)obj;

        if ((ncb.States & FishDataInfo.MsgBegin) != 0)
        {
            m_CharList.Clear();
        }
        for (int i = 0; i < ncb.Sum; ++i)
        {
            m_CharList.Add(ncb.Array[i].SrcUserID, ncb.Array[i]);
        }
        if ((ncb.States & FishDataInfo.MsgEnd) != 0)
        {
            m_IsLoadList = true;

            //产生事件
            tagCharListChange pEvent = new tagCharListChange();
            MsgEventHandle.HandleMsg(pEvent);
        }
        return(true);
    }