Ejemplo n.º 1
0
    bool HandleChangeRelationCharm(NetCmdBase obj)
    {
        LC_Cmd_ChangeRelationCharmValue ncb = (LC_Cmd_ChangeRelationCharmValue)obj;

        if (FriendMap.ContainsKey(ncb.dwDestUserID))
        {
            FriendMap[ncb.dwDestUserID].SetCharmInfo(ncb.CharmArray);

            tagFriendChangeEvent pFirendEvent = new tagFriendChangeEvent(ncb.dwDestUserID);
            MsgEventHandle.HandleMsg(pFirendEvent);
        }
        else if (BlackListMap.ContainsKey(ncb.dwDestUserID))
        {
            BlackListMap[ncb.dwDestUserID].SetCharmInfo(ncb.CharmArray);

            tagBlackChangeEvent pBlackEvent = new tagBlackChangeEvent(ncb.dwDestUserID);
            MsgEventHandle.HandleMsg(pBlackEvent);
        }
        return(true);
    }
Ejemplo n.º 2
0
    bool HandleChangeRelationIsInMonthCard(NetCmdBase obj)
    {
        LC_Cmd_ChangeRelationIsInMonthCard ncb = (LC_Cmd_ChangeRelationIsInMonthCard)obj;

        if (FriendMap.ContainsKey(ncb.dwDestUserID))
        {
            FriendMap[ncb.dwDestUserID].SetIsInMonthCard(ncb.IsInMonthCard);

            tagFriendChangeEvent pFirendEvent = new tagFriendChangeEvent(ncb.dwDestUserID);
            MsgEventHandle.HandleMsg(pFirendEvent);
        }
        else if (BlackListMap.ContainsKey(ncb.dwDestUserID))
        {
            BlackListMap[ncb.dwDestUserID].SetIsInMonthCard(ncb.IsInMonthCard);

            tagBlackChangeEvent pBlackEvent = new tagBlackChangeEvent(ncb.dwDestUserID);
            MsgEventHandle.HandleMsg(pBlackEvent);
        }
        return(true);
    }
Ejemplo n.º 3
0
    bool HandleChangeRoleOnline(NetCmdBase obj)
    {
        //修改玩家在线 玩家离线
        LC_Cmd_ChangeUserOline ncb = (LC_Cmd_ChangeUserOline)obj;

        if (FriendMap.ContainsKey(ncb.dwDestRoleID))
        {
            Byte Value = 0;
            if (ncb.IsOnline)
            {
                Value = 0xFF;
            }
            else
            {
                Value = 0;
            }
            FriendMap[ncb.dwDestRoleID].SetLeaveOnlineDay(Value);

            tagFriendChangeEvent pFirendEvent = new tagFriendChangeEvent(ncb.dwDestRoleID);
            MsgEventHandle.HandleMsg(pFirendEvent);
        }
        else if (BlackListMap.ContainsKey(ncb.dwDestRoleID))
        {
            Byte Value = 0;
            if (ncb.IsOnline)
            {
                Value = 0xFF;
            }
            else
            {
                Value = 0;
            }
            BlackListMap[ncb.dwDestRoleID].SetLeaveOnlineDay(Value);

            tagBlackChangeEvent pBlackEvent = new tagBlackChangeEvent(ncb.dwDestRoleID);
            MsgEventHandle.HandleMsg(pBlackEvent);
        }
        return(true);
    }