Beispiel #1
0
    bool OnHandleBeAddRelationRequest(NetCmdBase obj)
    {
        LC_Cmd_BeAddRelationRequest ncb = (LC_Cmd_BeAddRelationRequest)obj;

        m_RequestMap.Add(ncb.Info.ID, ncb.Info);
        //产生事件
        tagRelationRequestChangeEvent pEvent = new tagRelationRequestChangeEvent();

        MsgEventHandle.HandleMsg(pEvent);
        return(true);
    }
Beispiel #2
0
    bool OnHandleDelRelationRequest(NetCmdBase obj)
    {
        LC_Cmd_DelRelationRequest ncb = (LC_Cmd_DelRelationRequest)obj;

        m_RequestMap.Remove(ncb.ID);

        tagRelationRequestChangeEvent pEvent = new tagRelationRequestChangeEvent();

        MsgEventHandle.HandleMsg(pEvent);
        return(true);
    }
Beispiel #3
0
    bool OnHandleLoadRelationRequest(NetCmdBase obj)
    {
        LC_Cmd_LoadRelationRequest ncb = (LC_Cmd_LoadRelationRequest)obj;

        if ((ncb.States & FishDataInfo.MsgBegin) != 0)
        {
            m_RequestMap.Clear();
        }
        for (UInt16 i = 0; i < ncb.Sum; ++i)
        {
            m_RequestMap.Add(ncb.Array[i].ID, ncb.Array[i]);
        }
        if ((ncb.States & FishDataInfo.MsgEnd) != 0)
        {
            m_IsLoadInfo = true;

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