Exemplo n.º 1
0
    bool HandleRechargeOrderID(NetCmdBase obj)
    {
        LC_Cmd_GetOrderID     ncb  = (LC_Cmd_GetOrderID)obj;
        tagUserOperationEvent pUOM = new tagUserOperationEvent((ncb.Result ? UserOperateMessage.UOM_Recharge_GetOrderID_Success : UserOperateMessage.UOM_Recharge_GetOrderID_Failed_1));

        MsgEventHandle.HandleMsg(pUOM);

        tagRechargeGetOrderIDEvent pEvent = new tagRechargeGetOrderIDEvent(ncb.OrderID, ncb.ShopID, ncb.Result);

        MsgEventHandle.HandleMsg(pEvent);

        return(true);
    }
Exemplo n.º 2
0
    public bool OnHandleUpdateTable(NetCmdBase obj)
    {
        LC_Cmd_DialTableUpdate ncb = (LC_Cmd_DialTableUpdate)obj;

        TableStates = DialTableStates.DTS_Begin;//只有在开始阶段 才会进行更新
        TableUpdateInfo.SetInfo(ncb.TableBetAreaGlobel);
        //事件
        tagDialTableInfoChange pEvent = new tagDialTableInfoChange(TableStates, TableUpdateInfo);

        MsgEventHandle.HandleMsg(pEvent);

        return(true);
    }
Exemplo n.º 3
0
    bool HandleBindPhone(NetCmdBase obj)
    {
        LC_Cmd_BindPhone ncb = (LC_Cmd_BindPhone)obj;

        switch (ncb.ErrorID)
        {
        case (Byte)RoleOperateError.ROE_BindPhone_Sucess:
        {
            GlobalLogon.Instance.AccountData.LoadTempPhoneInfo();
            GlobalLogon.Instance.AccountData.SaveAccountData();

            tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Operate_BindPhone_Sucess);
            MsgEventHandle.HandleMsg(pUOM);

            tagEntityBindPhoneEvent pEvent = new tagEntityBindPhoneEvent(true, ncb.IsFirstBind, (Byte)RoleOperateError.ROE_BindPhone_Sucess);
            MsgEventHandle.HandleMsg(pEvent);
        }
        break;

        case (Byte)RoleOperateError.ROE_BindPhone_BindNumError:
        {
            tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Operate_BindPhone_Failed_1);
            MsgEventHandle.HandleMsg(pUOM);

            tagEntityBindPhoneEvent pEvent = new tagEntityBindPhoneEvent(false, false, (Byte)RoleOperateError.ROE_BindPhone_BindNumError);
            MsgEventHandle.HandleMsg(pEvent);
        }
        break;

        case (Byte)RoleOperateError.ROE_BindPhone_BindTimeOut:
        {
            tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Operate_BindPhone_Failed_2);
            MsgEventHandle.HandleMsg(pUOM);

            tagEntityBindPhoneEvent pEvent = new tagEntityBindPhoneEvent(false, false, (Byte)RoleOperateError.ROE_BindPhone_BindTimeOut);
            MsgEventHandle.HandleMsg(pEvent);
        }
        break;

        case (Byte)RoleOperateError.ROE_BindPhone_SendSmsInfoError:
        {
            tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Operate_BindPhone_Failed_3);
            MsgEventHandle.HandleMsg(pUOM);

            tagEntityBindPhoneEvent pEvent = new tagEntityBindPhoneEvent(false, false, (Byte)RoleOperateError.ROE_BindPhone_SendSmsInfoError);
            MsgEventHandle.HandleMsg(pEvent);
        }
        break;
        }
        return(true);
    }
Exemplo n.º 4
0
    bool HandleCheckOtherDayResult(NetCmdBase obj)
    {
        LC_Cmd_CheckOtherDay ncb = (LC_Cmd_CheckOtherDay)obj;

        if (ncb.Result)
        {
            tagCheckCheckOtherDayEvent pEvent = new tagCheckCheckOtherDayEvent(ncb.Day, ncb.DayRewardID, ncb.MonthRewardID);
            MsgEventHandle.HandleMsg(pEvent);
        }
        tagUserOperationEvent pUOM = new tagUserOperationEvent((ncb.Result ? UserOperateMessage.UOM_Check_OtherDay_Sucess : UserOperateMessage.UOM_Check_OtherDay_Failed_3));

        MsgEventHandle.HandleMsg(pUOM);
        return(true);
    }
Exemplo n.º 5
0
    public bool OnHandleTableJoinEnd(NetCmdBase obj)
    {
        LC_Cmd_TableJoinEnd ncb = (LC_Cmd_TableJoinEnd)obj;

        BrandResult.SetInfo(ncb.TableBrandArray, ncb.TableBrandResult);
        TableUpdateInfo.SetInfo(ncb.TableBetAreaGlobel);
        TableStates = NiuNiuTableStates.NNTS_End;//等待关闭状态

        for (int i = 0; i < FishDataInfo.MAX_NIUNIU_ClientSum; ++i)
        {
            TableGlobelSum[i] = 0;
        }

        //金币变化
        if (ncb.BankerUserGlobelInfo.dwUserID == TableBankerUserInfo.UserInfo.dwUserID)
        {
            TableBankerUserInfo.UserInfo.GlobelSum = ncb.BankerUserGlobelInfo.dwGlobelSum;
        }

        for (Byte i = 0; i < FishDataInfo.MAX_NIUNIU_BankerShowSum; ++i)
        {
            if (TableWriteBankerList.List[i] != null && ncb.BankerListGlobelInfo[i].dwUserID == TableWriteBankerList.List[i].dwUserID)
            {
                TableWriteBankerList.List[i].GlobelSum = ncb.BankerListGlobelInfo[i].dwGlobelSum;
            }
        }
        VipSeatList pOldlist = new VipSeatList();

        for (Byte i = 0; i < FishDataInfo.MAX_NIUNIU_VipSeat; ++i)
        {
            if (TableVipSeatInfo.List[i] != null && ncb.VipGlobelInfo[i].dwUserID == TableVipSeatInfo.List[i].dwUserID)
            {
                pOldlist.List[i] = TableVipSeatInfo.List[i];

                TableVipSeatInfo.List[i].GlobelSum = ncb.VipGlobelInfo[i].dwGlobelSum;
            }
        }

        TableGameLog.GameLog = ncb.TableResultLog;
        TableGameLog.GameSum = ncb.TableGameSum;

        //触发事件
        tagNiuNiuStatesChange pEvent = new tagNiuNiuStatesChange(TableStates, TableUpdateInfo, BrandResult, pOldlist, TableVipSeatInfo, TableWriteBankerList, TableBankerUserInfo, TableGameLog);

        MsgEventHandle.HandleMsg(pEvent);

        //string str = string.Format("游戏记录 局数:{0} 数据:{1}", TableGameLog.GameSum, TableGameLog.GameLog);
        //LogMgr.Log(str);
        return(true);
    }
Exemplo n.º 6
0
    private bool HandleLoadUserNormalMail(NetCmdBase obj)
    {
        LC_Cmd_NormalMail ncb = (LC_Cmd_NormalMail)obj;

        if ((ncb.States & FishDataInfo.MsgBegin) != 0)
        {
            NormalMailTitleList.Clear();
        }
        for (UInt16 i = 0; i < ncb.Sum; ++i)
        {
            NormalMailTitleList.Add(ncb.Array[i]);
        }
        return(true);
    }
Exemplo n.º 7
0
    bool HandleShopItemResult(NetCmdBase obj)
    {
        LC_Cmd_ShopItemResult ncb = (LC_Cmd_ShopItemResult)obj;

        tagUserOperationEvent pUOM = new tagUserOperationEvent((ncb.Result ? UserOperateMessage.UOM_Shop_BuyItem_Sucess : UserOperateMessage.UOM_Shop_BuyItem_Failed_6));

        MsgEventHandle.HandleMsg(pUOM);

        tagShopResultEvent pEvent = new tagShopResultEvent(ncb.Result);

        MsgEventHandle.HandleMsg(pEvent);

        return(true);
    }
Exemplo n.º 8
0
    bool HandleOtherRoleNickNameChange(NetCmdBase obj)
    {
        LC_Cmd_TableChangeRoleNickName ncb = (LC_Cmd_TableChangeRoleNickName)obj;

        //修改远程玩家的等级
        if (m_TableRole.ContainsKey(ncb.dwDestUserID))
        {
            m_TableRole[ncb.dwDestUserID].SetNickName(ncb.NickName);

            tagTableChangeEvent pEvent = new tagTableChangeEvent(ncb.dwDestUserID);
            MsgEventHandle.HandleMsg(pEvent);
        }
        return(true);
    }
Exemplo n.º 9
0
    bool HandleOtherRoleCharmChanger(NetCmdBase obj)
    {
        //修改桌子上玩家的魅力数据
        LC_Cmd_TableChangeRoleCharmValue ncb = (LC_Cmd_TableChangeRoleCharmValue)obj;

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

            tagTableChangeEvent pEvent = new tagTableChangeEvent(ncb.dwDestUserID);
            MsgEventHandle.HandleMsg(pEvent);
        }
        return(true);
    }
Exemplo n.º 10
0
    bool HandleOtherRoleGobleNumChange(NetCmdBase obj)
    {
        LC_Cmd_TableChangeRoleGlobe ncb = (LC_Cmd_TableChangeRoleGlobe)obj;

        //修改远程玩家的等级
        if (m_TableRole.ContainsKey(ncb.dwDestUserID))
        {
            m_TableRole[ncb.dwDestUserID].SetGlobel(Convert.ToUInt32(ncb.dwGlobelSum + m_TableRole[ncb.dwDestUserID].GetGlobel()));

            tagTableChangeEvent pEvent = new tagTableChangeEvent(ncb.dwDestUserID);
            MsgEventHandle.HandleMsg(pEvent);
        }
        return(true);
    }
Exemplo n.º 11
0
    bool HandleResetOtherUser(NetCmdBase obj)
    {
        LC_Cmd_ResetOtherUserInfo ncb = (LC_Cmd_ResetOtherUserInfo)obj;

        TableRole pTableRole = new TableRole(ncb.UserInfo);

        m_TableRole.Add(pTableRole.GetUserID(), pTableRole);
        m_TableRoleSeat.Add(pTableRole.GetSeat(), pTableRole);

        tagTableChangeEvent pEvent = new tagTableChangeEvent(ncb.UserInfo.dwUserID);

        MsgEventHandle.HandleMsg(pEvent);
        return(true);
    }
Exemplo n.º 12
0
 public void Send <T>(NetCmdBase ncb)
 {
     if (typeof(T) != ncb.GetType())
     {
         LogMgr.Log("命令类型不相等:" + ncb.ToString());
         return;
     }
     if (IsConnected)
     {
         m_TCPClient.Send <T>(ncb);
     }
     //else
     //    LogMgr.Log("TCPClient don't connected, send cmd:" + ncb.ToString());
 }
Exemplo n.º 13
0
    public bool HandleCmd(NetCmdBase obj)
    {
        switch (obj.GetCmdType())
        {
        case NetCmdType.CMD_LC_GetRankReward:
            return(HandleGetRankReward(obj));

        //case NetCmdType.CMD_LC_GetRankInfoFinish:
        //    return HandleGetRankInfoFinish(obj);
        case NetCmdType.CMD_LC_GetWeekRankInfo:
            return(HandleGetRankWeekInfo(obj));
        }
        return(true);
    }
Exemplo n.º 14
0
    bool HandleOtherRoleVipLevelChange(NetCmdBase obj)
    {
        //桌子上玩家VIP变化了
        LC_Cmd_TableChangeRoleVipLevel ncb = (LC_Cmd_TableChangeRoleVipLevel)obj;

        if (m_TableRole.ContainsKey(ncb.dwDestUserID))
        {
            m_TableRole[ncb.dwDestUserID].SetVipLevel(ncb.VipLevel);

            tagTableChangeEvent pEvent = new tagTableChangeEvent(ncb.dwDestUserID);
            MsgEventHandle.HandleMsg(pEvent);
        }
        return(true);
    }
Exemplo n.º 15
0
    bool HandleAddTargetCharmResult(NetCmdBase obj)
    {
        LC_Cmd_ChangeRoleCharmResult ncb = (LC_Cmd_ChangeRoleCharmResult)obj;

        if (ncb.Result)
        {
            tagUserChangeEvent pEvent = new tagUserChangeEvent(ncb.dwDestUserID, ncb.dwDestUserCharmValue);
            MsgEventHandle.HandleMsg(pEvent);
        }
        tagUserOperationEvent pUOM = new tagUserOperationEvent((ncb.Result ? UserOperateMessage.UOM_Charm_SendCharm_Sucess : UserOperateMessage.UOM_Charm_SendCharm_Failed_4));

        MsgEventHandle.HandleMsg(pUOM);
        return(true);
    }
Exemplo n.º 16
0
        bool HandleOtherRoleGenderChange(NetCmdBase obj)
        {
            LC_Cmd_TableChangeRoleGender ncb = (LC_Cmd_TableChangeRoleGender)obj;

            //修改远程玩家的等级
            if (m_TableRole.ContainsKey(ncb.dwDestUserID))
            {
                m_TableRole[ncb.dwDestUserID].SetGender(ncb.bGender);

                tagTableChangeEvent pEvent = new tagTableChangeEvent(ncb.dwDestUserID);
                //MsgEventHandle.HandleMsg(pEvent);
            }
            return(true);
        }
Exemplo n.º 17
0
        bool HandleChangeRoleIsShowIpAddress(NetCmdBase obj)
        {
            LC_Cmd_ChangeRoleIsShowIpAddress ncb = (LC_Cmd_ChangeRoleIsShowIpAddress)obj;

            RoleMe.SetIsShowIpAddress(ncb.IsShowIpAddress);

            tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Role_IsShowIpAddress_Sucess);
            //MsgEventHandle.HandleMsg(pUOM);

            tagRoleChangeEvent pEvent = new tagRoleChangeEvent();

            //MsgEventHandle.HandleMsg(pEvent);
            return(true);
        }
Exemplo n.º 18
0
        bool HandleChangeRoleTitle(NetCmdBase obj)
        {
            LC_Cmd_ChangeRoleTitle ncb = (LC_Cmd_ChangeRoleTitle)obj;

            m_RoleInfo.SetTitleID(ncb.TitleID);

            tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Title_Sucess);
            //MsgEventHandle.HandleMsg(pUOM);

            tagRoleChangeEvent pEvent = new tagRoleChangeEvent();

            //MsgEventHandle.HandleMsg(pEvent);
            return(true);
        }
Exemplo n.º 19
0
    public bool HandleCmd(NetCmdBase obj)
    {
        switch (obj.GetCmdType())
        {
        case NetCmdType.CMD_LC_GetAllAnnouncement:
            return(HandleLoadAllAnnouncement(obj));

        //case NetCmdType.CMD_LC_GetAllAnnouncementFinish:
        //    return HandleLoadAllAnnouncementFinish(obj);
        case NetCmdType.CMD_LC_SendNewAnnouncementOnce:
            return(HandleAddAnnouncement(obj));
        }
        return(true);
    }
Exemplo n.º 20
0
 public static byte[] CmdToBytes <T>(NetCmdBase cmd, int prefixLength)
 {
     byte[] data = TypeReflector.ObjToBytes <T>(cmd, prefixLength);
     if (data == null)
     {
         LogMgr.Log("Unregister cmd type:" + cmd.GetCmdType());
     }
     else
     {
         data[0] = (byte)data.Length;
         data[1] = (byte)(data.Length >> 8);
     }
     return(data);
 }
Exemplo n.º 21
0
    //服务器回发命令处理
    public bool OnHandleRoleJoinTable(NetCmdBase obj)
    {
        LC_Cmd_RoleJoinTable ncb = (LC_Cmd_RoleJoinTable)obj;

        if (ncb.Result)
        {
            //赋值 将消息里携带的数据 赋值到结构里面去
            TableStates = (NiuNiuTableStates)ncb.TableStates;
            TableUpdateInfo.SetInfo(ncb.TableBetAreaGlobel);
            BrandResult.SetInfo(ncb.TableBrandArray, ncb.TableBrandResult);
            TableBankerUserInfo.SetInfo(ncb.TableBankerInfo, ncb.TableBankerUseGameSum);
            TableWriteBankerList.SetInfo(0xffffffff, ncb.TableWriteBankerList);
            TableVipSeatInfo.SetInfo(ncb.VipSeatList);
            for (Byte i = 0; i < FishDataInfo.MAX_NIUNIU_ClientSum; ++i)
            {
                TableGlobelSum[i] = 0;
            }
            IsInBankerList = false;

            TableGameLog.GameLog = ncb.TableResultLog;
            TableGameLog.GameSum = ncb.TableGameSum;

            tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_NiuNiu_JoinRoom_Sucess);
            MsgEventHandle.HandleMsg(pUOM);

            tagNiuNiuJoin pEvent = new tagNiuNiuJoin(ncb.TableStatesUpdateSec, TableStates, TableUpdateInfo, BrandResult, TableBankerUserInfo, TableWriteBankerList, TableVipSeatInfo, TableGameLog);
            MsgEventHandle.HandleMsg(pEvent);

            //string str = string.Format("排队列表变化 : ({0}:{1}) ({2}:{3}) ({4}:{5}) ({6}:{7}) ({8}:{9})",
            //  ncb.TableWriteBankerList[0].dwUserID, ncb.TableWriteBankerList[0].GlobelSum,
            //  ncb.TableWriteBankerList[1].dwUserID, ncb.TableWriteBankerList[1].GlobelSum,
            //  ncb.TableWriteBankerList[2].dwUserID, ncb.TableWriteBankerList[2].GlobelSum,
            //  ncb.TableWriteBankerList[3].dwUserID, ncb.TableWriteBankerList[3].GlobelSum,
            //  ncb.TableWriteBankerList[4].dwUserID, ncb.TableWriteBankerList[4].GlobelSum,
            //  ncb.TableWriteBankerList[5].dwUserID, ncb.TableWriteBankerList[5].GlobelSum,
            //  ncb.TableWriteBankerList[6].dwUserID, ncb.TableWriteBankerList[6].GlobelSum,
            //  ncb.TableWriteBankerList[7].dwUserID, ncb.TableWriteBankerList[7].GlobelSum);
            //LogMgr.Log(str);
            //string str = string.Format("游戏记录 局数:{0} 数据:{1}", TableGameLog.GameSum, TableGameLog.GameLog);
            //LogMgr.Log(str);
        }
        else
        {
            //进入房间失败了
            tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_NiuNiu_JoinRoom_Failed_2);
            MsgEventHandle.HandleMsg(pUOM);
        }
        return(true);
    }
Exemplo n.º 22
0
    public bool OnHandleTableJoinEnd(NetCmdBase obj)
    {
        LC_Cmd_CarTableJoinEnd ncb = (LC_Cmd_CarTableJoinEnd)obj;

        TableResult = ncb.TableResultIndex;
        TableUpdateInfo.SetInfo(ncb.TableBetAreaGlobel);
        TableStates = CarTableStates.CTS_End;//等待关闭状态

        for (int i = 0; i < FishDataInfo.MAX_Car_ClientSum; ++i)
        {
            TableGlobelSum[i] = 0;
        }

        //金币变化
        if (ncb.BankerUserGlobelInfo.dwUserID == TableBankerUserInfo.UserInfo.dwUserID)
        {
            TableBankerUserInfo.UserInfo.GlobelSum = ncb.BankerUserGlobelInfo.dwGlobelSum;
        }

        for (Byte i = 0; i < FishDataInfo.MAX_Car_BankerShowSum; ++i)
        {
            if (TableWriteBankerList.List[i] != null && ncb.BankerListGlobelInfo[i].dwUserID == TableWriteBankerList.List[i].dwUserID)
            {
                TableWriteBankerList.List[i].GlobelSum = ncb.BankerListGlobelInfo[i].dwGlobelSum;
            }
        }
        CarVipSeatList pOldlist = new CarVipSeatList();

        for (Byte i = 0; i < FishDataInfo.MAX_Car_VipSeat; ++i)
        {
            if (TableVipSeatInfo.List[i] != null && ncb.VipGlobelInfo[i].dwUserID == TableVipSeatInfo.List[i].dwUserID)
            {
                pOldlist.List[i] = TableVipSeatInfo.List[i];

                TableVipSeatInfo.List[i].GlobelSum = ncb.VipGlobelInfo[i].dwGlobelSum;
            }
        }

        TableGameLog.GameLog = ncb.TableResultLog;
        TableGameLog.GameSum = ncb.TableGameSum;

        LogMgr.Log(string.Format("玩家金币变化 {0}", ncb.AddGlobelSum));

        //触发事件
        tagCarStatesChange pEvent = new tagCarStatesChange(TableStates, TableUpdateInfo, pOldlist, TableVipSeatInfo, TableWriteBankerList, TableBankerUserInfo, TableGameLog, TableResult);

        MsgEventHandle.HandleMsg(pEvent);
        return(true);
    }
Exemplo n.º 23
0
    private bool HandleAddUserNormalMail(NetCmdBase obj)
    {
        LC_Cmd_AddNormalMail ncb = (LC_Cmd_AddNormalMail)obj;

        NormalMailTitleList.Add(ncb.MailInfo);

        //CheckMailStates();

        tagMailTitleAddEvent pEvent = new tagMailTitleAddEvent(ncb.MailInfo.MailID, false);

        MsgEventHandle.HandleMsg(pEvent);

        // FriendSysManager.Instance.AddNormalMail(ncb.MailInfo);
        return(true);
    }
Exemplo n.º 24
0
    private bool HandleJoinMonthFiled(NetCmdBase obj)
    {
        LC_Cmd_JoinMonthFiled ncb = (LC_Cmd_JoinMonthFiled)obj;

        tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Month_JoinMonth_Failed_5);

        MsgEventHandle.HandleMsg(pUOM);

        if (HallRunTimeInfo.Instance_UI != null && HallRunTimeInfo.Instance_UI.m_loginUi != null)
        {
            HallRunTimeInfo.Instance_UI.m_loginUi.UpdateMatchData();
        }

        return(true);
    }
Exemplo n.º 25
0
    bool HandleChangeRoleEntityItemUseAddress(NetCmdBase obj)
    {
        LC_Cmd_ChangeRoleEntityItemUseAddress ncb = (LC_Cmd_ChangeRoleEntityItemUseAddress)obj;

        RoleEntityInfo.EntityItemUseAddres = ncb.EntityItemUseAddress;
        tagEntityChangeEvent pEvent = new tagEntityChangeEvent();

        MsgEventHandle.HandleMsg(pEvent);

        tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Entity_EntityItemUseAddress_Sucess);

        MsgEventHandle.HandleMsg(pUOM);

        return(true);
    }
Exemplo n.º 26
0
    public bool OnHandleBankerUserGlobelChange(NetCmdBase obj)
    {
        LC_Cmd_CarBankerUserGlobelChange ncb = (LC_Cmd_CarBankerUserGlobelChange)obj;

        if (TableBankerUserInfo.UserInfo.dwUserID != ncb.dwBankerUserID)
        {
            return(false);
        }
        TableBankerUserInfo.UserInfo.GlobelSum = ncb.dwBankerGlobelSum;
        //触发事件
        tagCarBankerUserChange pEvent = new tagCarBankerUserChange(TableBankerUserInfo);

        MsgEventHandle.HandleMsg(pEvent);
        return(true);
    }
Exemplo n.º 27
0
        bool HandleLCChangeRoleGender(NetCmdBase obj)
        {
            LC_Cmd_ChangeRoleGender ncb = (LC_Cmd_ChangeRoleGender)obj;

            m_RoleInfo.SetGender(ncb.bGender);

            tagRoleChangeEvent pEvent = new tagRoleChangeEvent();
            //MsgEventHandle.HandleMsg(pEvent);

            tagUserOperationEvent pUOM = new tagUserOperationEvent(UserOperateMessage.UOM_Role_Gender_Sucess);

            //MsgEventHandle.HandleMsg(pUOM);

            return(true);
        }
Exemplo n.º 28
0
    public bool HandleCmd(NetCmdBase obj)
    {
        switch (obj.GetCmdType())
        {
        case NetCmdType.CMD_LC_Recharge:
            return(HandleRechargeResult(obj));

        case NetCmdType.CMD_LC_GetOrderID:
            return(HandleRechargeOrderID(obj));

        case NetCmdType.CMD_GC_CreateOrder:
            return(HandleCreateOrder(obj));
        }
        return(true);
    }
Exemplo n.º 29
0
    //private bool HandleLoadAllAnnouncementFinish(NetCmdBase obj)
    //{

    //    return true;
    //}
    private bool HandleAddAnnouncement(NetCmdBase obj)
    {
        LC_Cmd_SendNewAnnouncementOnce ncb = (LC_Cmd_SendNewAnnouncementOnce)obj;

        pList.Insert(0, ncb.pOnce);
        while (pList.Count > FishConfig.Instance.m_SystemConfig.AnnouncementSum)
        {
            pList.RemoveAt(pList.Count - 1);//移除最后一个
        }
        //魅力命令
        tagAnnouncementChangeEvent pEvent = new tagAnnouncementChangeEvent();

        MsgEventHandle.HandleMsg(pEvent);
        return(true);
    }
Exemplo n.º 30
0
    public void Send <T>(NetCmdBase ncb)
    {
        SendCmdPack scp;

        scp.Cmd  = ncb;
        scp.Hash = TypeSize <T> .HASH;
        if (m_SendList.HasSpace())
        {
            m_SendList.AddItem(scp);
        }
        else
        {
            LogMgr.Log("发送命令队列已满");
        }
    }