/**
     * 加入德州
     * @param playerList 玩家列表
     * @param roomType 房间类型
     * @param texasRoomEnum sng或普通房
     */
    public void GC_JOIN_TEXAS(InputMessage data)
    {
        int       i, size;
        ArrayList playerList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            TexasRoomPlayerInfoData playerList_Datas = new TexasRoomPlayerInfoData();
            playerList_Datas.playerId    = data.GetLong();
            playerList_Datas.name        = data.GetString(); //玩家名字
            playerList_Datas.img         = data.GetString(); //玩家图片
            playerList_Datas.playerState = data.GetInt();    //玩家状态
            playerList_Datas.coins       = data.GetLong();
            playerList_Datas.vip         = data.GetInt();    //vip
            playerList_Datas.pos         = data.GetInt();    //位置
            playerList_Datas.currentBet  = data.GetLong();
            playerList_Datas.allBet      = data.GetLong();
            playerList.Add(playerList_Datas);
        }
        int roomType      = data.GetInt();
        int texasRoomEnum = data.GetInt();

        TexasHandler.Instance().GC_JOIN_TEXAS(playerList, roomType, texasRoomEnum);
    }
Example #2
0
    /**
     * 客户端请求用户信息
     * @param playerInfoData 玩家信息
     */
    public void GC_QUERY_PLAYER_INFO_NAME(InputMessage data)
    {
        int       i, size;
        ArrayList playerInfoData = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            PlayerInfoData playerInfoData_Datas = new PlayerInfoData();
            playerInfoData_Datas.playerId         = data.GetLong();
            playerInfoData_Datas.name             = data.GetString(); //名字
            playerInfoData_Datas.img              = data.GetString(); //图片
            playerInfoData_Datas.gold             = data.GetLong();
            playerInfoData_Datas.diamond          = data.GetLong();
            playerInfoData_Datas.charm            = data.GetLong();
            playerInfoData_Datas.level            = data.GetLong();
            playerInfoData_Datas.sex              = data.GetInt();    //性别
            playerInfoData_Datas.viplevel         = data.GetInt();    //vip等级
            playerInfoData_Datas.countries        = data.GetString(); //国籍
            playerInfoData_Datas.age              = data.GetInt();    //年龄
            playerInfoData_Datas.slotRotate       = data.GetLong();
            playerInfoData_Datas.slotWin          = data.GetLong();
            playerInfoData_Datas.slotSingleWin    = data.GetLong();
            playerInfoData_Datas.slotWinNum       = data.GetLong();
            playerInfoData_Datas.integral         = data.GetLong();
            playerInfoData_Datas.isRequest        = data.GetInt();    //是否已经申请添加好友 0:未申请,1:已申请
            playerInfoData_Datas.newGuyGift       = data.GetInt();    //新手大礼包:1已购买,0 未购买
            playerInfoData_Datas.clubId           = data.GetString(); //俱乐部id,空字符串表示未加入俱乐部
            playerInfoData_Datas.clubIco          = data.GetInt();    //俱乐部图标
            playerInfoData_Datas.clubInvitedTimes = data.GetInt();    //被俱乐部邀请次数,0为未被邀请
            playerInfoData_Datas.achieveRate      = data.GetString(); //无双吹牛 成就  完成个数/总个数
            playerInfoData.Add(playerInfoData_Datas);
        }
        PlayerHandler.Instance().GC_QUERY_PLAYER_INFO_NAME(playerInfoData);
    }
Example #3
0
    /**
     * 客户端请求好友列表
     * @param friendRequestInfoDataList 玩家信息
     */
    public void GC_LOAD_FRIEND_REQUEST_LIST(InputMessage data)
    {
        int       i, size;
        ArrayList friendRequestInfoDataList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            PlayerInfoData friendRequestInfoDataList_Datas = new PlayerInfoData();
            friendRequestInfoDataList_Datas.playerId         = data.GetLong();
            friendRequestInfoDataList_Datas.name             = data.GetString(); //名字
            friendRequestInfoDataList_Datas.img              = data.GetString(); //图片
            friendRequestInfoDataList_Datas.gold             = data.GetLong();
            friendRequestInfoDataList_Datas.diamond          = data.GetLong();
            friendRequestInfoDataList_Datas.charm            = data.GetLong();
            friendRequestInfoDataList_Datas.level            = data.GetLong();
            friendRequestInfoDataList_Datas.sex              = data.GetInt();    //性别
            friendRequestInfoDataList_Datas.viplevel         = data.GetInt();    //vip等级
            friendRequestInfoDataList_Datas.countries        = data.GetString(); //国籍
            friendRequestInfoDataList_Datas.age              = data.GetInt();    //年龄
            friendRequestInfoDataList_Datas.slotRotate       = data.GetLong();
            friendRequestInfoDataList_Datas.slotWin          = data.GetLong();
            friendRequestInfoDataList_Datas.slotSingleWin    = data.GetLong();
            friendRequestInfoDataList_Datas.slotWinNum       = data.GetLong();
            friendRequestInfoDataList_Datas.integral         = data.GetLong();
            friendRequestInfoDataList_Datas.isRequest        = data.GetInt();    //是否已经申请添加好友 0:未申请,1:已申请
            friendRequestInfoDataList_Datas.newGuyGift       = data.GetInt();    //新手大礼包:1已购买,0 未购买
            friendRequestInfoDataList_Datas.clubId           = data.GetString(); //俱乐部id,空字符串表示未加入俱乐部
            friendRequestInfoDataList_Datas.clubIco          = data.GetInt();    //俱乐部图标
            friendRequestInfoDataList_Datas.clubInvitedTimes = data.GetInt();    //被俱乐部邀请次数,0为未被邀请
            friendRequestInfoDataList_Datas.achieveRate      = data.GetString(); //无双吹牛 成就  完成个数/总个数
            friendRequestInfoDataList.Add(friendRequestInfoDataList_Datas);
        }
        RelationHandler.Instance().GC_LOAD_FRIEND_REQUEST_LIST(friendRequestInfoDataList);
    }
Example #4
0
    /**
     * 响应客户端请求系统邮件列表
     * @param mailKind 邮件类型
     * @param mailInfoDataList 邮件列表
     */
    public void GC_LOAD_MAIL_LIST(InputMessage data)
    {
        int       i, size;
        int       mailKind         = data.GetInt();
        ArrayList mailInfoDataList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            MailInfoData mailInfoDataList_Datas = new MailInfoData();
            mailInfoDataList_Datas.mailId        = data.GetLong();
            mailInfoDataList_Datas.sendId        = data.GetLong();
            mailInfoDataList_Datas.sendName      = data.GetString();    //发件角色名称
            mailInfoDataList_Datas.mailCdTime    = data.GetLong();
            mailInfoDataList_Datas.hasAttachment = data.GetInt();       //是否有奖品未领取
            mailInfoDataList_Datas.mailStatus    = data.GetInt();       //邮件状态
            mailInfoDataList_Datas.mailTitle     = data.GetString();    //邮件标题
            mailInfoDataList_Datas.mailCreatTime = data.GetLong();
            mailInfoDataList_Datas.isFriendSend  = data.GetInt();       //是否是好友发送的    0:是,1:否
            mailInfoDataList_Datas.vipLevel      = data.GetInt();       //vip等级
            mailInfoDataList_Datas.headName      = data.GetString();    //头像
            mailInfoDataList.Add(mailInfoDataList_Datas);
        }
        MailHandler.Instance().GC_LOAD_MAIL_LIST(mailKind, mailInfoDataList);
    }
Example #5
0
    /**
     * 获取mycard交易码
     * @param returnCode 返回结果 1 表示成功 0 表示失败
     * @param authCode 交易码
     */
    public void GC_MYCARD_AUTHCODE(InputMessage data)
    {
        string returnCode = data.GetString();
        string authCode   = data.GetString();

        RechargeHandler.Instance().GC_MYCARD_AUTHCODE(returnCode, authCode);
    }
Example #6
0
    /**
     * facebook好友
     * @param friendRequestInfoData 玩家信息
     */
    public void GC_FACEBOOK_FRIENDS_SYNC(InputMessage data)
    {
        int       i, size;
        ArrayList friendRequestInfoData = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            FriendDetailInfoData friendRequestInfoData_Datas = new FriendDetailInfoData();
            friendRequestInfoData_Datas.playerId          = data.GetLong();
            friendRequestInfoData_Datas.name              = data.GetString(); //名字
            friendRequestInfoData_Datas.img               = data.GetString(); //图片
            friendRequestInfoData_Datas.giftTime          = data.GetLong();
            friendRequestInfoData_Datas.gold              = data.GetLong();
            friendRequestInfoData_Datas.level             = data.GetLong();
            friendRequestInfoData_Datas.facebook          = data.GetInt();    //facebook
            friendRequestInfoData_Datas.sex               = data.GetInt();    //性别
            friendRequestInfoData_Datas.countries         = data.GetString(); //国籍
            friendRequestInfoData_Datas.isGame            = data.GetInt();    //是否在游戏中 1 在游戏中 0 没有在
            friendRequestInfoData_Datas.playerState       = data.GetInt();    //玩家状态 1 在线 0 不在线
            friendRequestInfoData_Datas.offlineTime       = data.GetLong();
            friendRequestInfoData_Datas.vipLevel          = data.GetInt();    //VIP等级
            friendRequestInfoData_Datas.alreadyInvateClub = data.GetInt();    //是否已经邀请加入俱乐部
            friendRequestInfoData_Datas.alreadyJoinClub   = data.GetInt();    //是否已经加入俱乐部未加入: 0  已加入: 1
            friendRequestInfoData.Add(friendRequestInfoData_Datas);
        }
        RelationHandler.Instance().GC_FACEBOOK_FRIENDS_SYNC(friendRequestInfoData);
    }
Example #7
0
    /**
     * 俱乐留言列表
     * @param opType 操作类型 1 全部  2 增加  3 删除   4 更新 (可能用不上)
     * @param clubNote 俱乐部留言板
     */
    public void GC_CLUB_NOTE_LIST(InputMessage data)
    {
        int       i, size;
        int       opType   = data.GetInt();
        ArrayList clubNote = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            ClubNoteUnit clubNote_Datas = new ClubNoteUnit();
            clubNote_Datas.noteId     = data.GetString();    //留言id
            clubNote_Datas.playerId   = data.GetLong();
            clubNote_Datas.playerName = data.GetString();    //玩家名字
            clubNote_Datas.img        = data.GetString();    //头像
            clubNote_Datas.guoji      = data.GetString();    //国籍
            clubNote_Datas.level      = data.GetLong();
            clubNote_Datas.noteType   = data.GetInt();       //类型 0 常规 1 礼物
            clubNote_Datas.content    = data.GetString();    //内容
            clubNote_Datas.giftId     = data.GetInt();       //礼物id
            clubNote_Datas.alreadyGet = data.GetInt();       //1已经领取 0 未领取
            clubNote_Datas.zhiwu      = data.GetInt();       //职务 1 主席  2副主席 3主管4成员
            clubNote_Datas.time       = data.GetLong();
            clubNote.Add(clubNote_Datas);
        }
        ClubHandler.Instance().GC_CLUB_NOTE_LIST(opType, clubNote);
    }
Example #8
0
    /**
     * 请求添加好友同步
     * @param friendRequestInfoData 玩家信息
     */
    public void GC_REQUEST_FRIEND_SYNC(InputMessage data)
    {
        PlayerInfoData friendRequestInfoData = new PlayerInfoData();

        friendRequestInfoData.playerId         = data.GetLong();   //玩家id
        friendRequestInfoData.name             = data.GetString(); //名字
        friendRequestInfoData.img              = data.GetString(); //图片
        friendRequestInfoData.gold             = data.GetLong();   //玩家筹码
        friendRequestInfoData.diamond          = data.GetLong();   //钻石
        friendRequestInfoData.charm            = data.GetLong();   //玩家筹码
        friendRequestInfoData.level            = data.GetLong();   //等级
        friendRequestInfoData.sex              = data.GetInt();    //性别
        friendRequestInfoData.viplevel         = data.GetInt();    //vip等级
        friendRequestInfoData.countries        = data.GetString(); //国籍
        friendRequestInfoData.age              = data.GetInt();    //年龄
        friendRequestInfoData.slotRotate       = data.GetLong();   //总转次数
        friendRequestInfoData.slotWin          = data.GetLong();   //总赢得分
        friendRequestInfoData.slotSingleWin    = data.GetLong();   //单次赢取最大
        friendRequestInfoData.slotWinNum       = data.GetLong();   //玩家总胜利次数
        friendRequestInfoData.integral         = data.GetLong();   //排行榜积分
        friendRequestInfoData.isRequest        = data.GetInt();    //是否已经申请添加好友 0:未申请,1:已申请
        friendRequestInfoData.newGuyGift       = data.GetInt();    //新手大礼包:1已购买,0 未购买
        friendRequestInfoData.clubId           = data.GetString(); //俱乐部id,空字符串表示未加入俱乐部
        friendRequestInfoData.clubIco          = data.GetInt();    //俱乐部图标
        friendRequestInfoData.clubInvitedTimes = data.GetInt();    //被俱乐部邀请次数,0为未被邀请
        friendRequestInfoData.achieveRate      = data.GetString(); //无双吹牛 成就  完成个数/总个数
        RelationHandler.Instance().GC_REQUEST_FRIEND_SYNC(friendRequestInfoData);
    }
Example #9
0
    /**
     * 获取俱乐部成员列表
     * @param list 如果操作成功 成员变化后的信息
     */
    public void GC_CLUB_MEMBER_LIST(InputMessage data)
    {
        int       i, size;
        ArrayList list = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            ClubMemberListUnit list_Datas = new ClubMemberListUnit();
            list_Datas.playerId   = data.GetLong();
            list_Datas.name       = data.GetString();    //成员名字
            list_Datas.ico        = data.GetString();    //ico
            list_Datas.level      = data.GetInt();       //成员等级
            list_Datas.country    = data.GetString();    //国籍
            list_Datas.zhiwu      = data.GetInt();       //职务
            list_Datas.gongxian   = data.GetInt();       //个人贡献
            list_Datas.huoyue     = data.GetInt();       //个人活跃度
            list_Datas.online     = data.GetInt();       //是否在线
            list_Datas.inGame     = data.GetInt();       //是否游戏中
            list_Datas.logoutTime = data.GetLong();
            list_Datas.tanheState = data.GetInt();       //不可弹劾:0 可弹劾:1 弹劾进行中:2 弹劾成功:3
            list_Datas.agree      = data.GetInt();       //同意人数
            list_Datas.refuse     = data.GetInt();       //拒绝人数
            list_Datas.selfState  = data.GetInt();       //个人状态 1 同意 2 拒绝 0 未表态
            list_Datas.vipLevel   = data.GetInt();       //用户vip的等级
            list_Datas.girlFlag   = data.GetInt();       //用户性别 1:男,2:女
            list.Add(list_Datas);
        }
        ClubHandler.Instance().GC_CLUB_MEMBER_LIST(list);
    }
Example #10
0
    /**
     * 获取俱乐部信息
     * @param clubInfo 俱乐部信息
     */
    public void GC_CLUB_INFO(InputMessage data)
    {
        ClubInfoUnit clubInfo = new ClubInfoUnit();
        int          j;

        clubInfo.id              = data.GetString(); //id
        clubInfo.name            = data.GetString(); //名字
        clubInfo.ico             = data.GetInt();    //ico
        clubInfo.level           = data.GetInt();    //等级
        clubInfo.progress        = data.GetInt();    //等级进度
        clubInfo.notice          = data.GetString(); //公告
        clubInfo.huoyue          = data.GetInt();    //赛季活跃点
        clubInfo.money           = data.GetInt();    //资产
        clubInfo.male            = data.GetInt();    //男
        clubInfo.female          = data.GetInt();    //女
        clubInfo.rankHuoYue      = data.GetInt();    //俱乐部活跃排名
        clubInfo.rankGongXian    = data.GetInt();    //俱乐部贡献排名
        clubInfo.clubType        = data.GetInt();    //类型
        clubInfo.limit           = data.GetInt();    //段位
        clubInfo.zhiwu           = data.GetInt();    //自己的职务
        clubInfo.seasonEndSecond = data.GetLong();   //到赛季结束的时间秒
        ArrayList additionalIco     = new ArrayList();
        int       additionalIcoSize = data.GetShort();

        for (j = 0; j < additionalIcoSize; j++)
        {
            string additionalIco_Datas = data.GetString();            //额外解锁的图标
            additionalIco.Add(additionalIco_Datas);
        }
        clubInfo.additionalIco = additionalIco;
        ClubHandler.Instance().GC_CLUB_INFO(clubInfo);
    }
Example #11
0
    /**
     * 客户端请求用户信息
     * @param playerInfoData 玩家信息
     */
    public void GC_QUERY_PLAYER_INFO(InputMessage data)
    {
        PlayerInfoData playerInfoData = new PlayerInfoData();

        playerInfoData.playerId         = data.GetLong();   //玩家id
        playerInfoData.name             = data.GetString(); //名字
        playerInfoData.img              = data.GetString(); //图片
        playerInfoData.gold             = data.GetLong();   //玩家筹码
        playerInfoData.diamond          = data.GetLong();   //钻石
        playerInfoData.charm            = data.GetLong();   //玩家筹码
        playerInfoData.level            = data.GetLong();   //等级
        playerInfoData.sex              = data.GetInt();    //性别
        playerInfoData.viplevel         = data.GetInt();    //vip等级
        playerInfoData.countries        = data.GetString(); //国籍
        playerInfoData.age              = data.GetInt();    //年龄
        playerInfoData.slotRotate       = data.GetLong();   //总转次数
        playerInfoData.slotWin          = data.GetLong();   //总赢得分
        playerInfoData.slotSingleWin    = data.GetLong();   //单次赢取最大
        playerInfoData.slotWinNum       = data.GetLong();   //玩家总胜利次数
        playerInfoData.integral         = data.GetLong();   //排行榜积分
        playerInfoData.isRequest        = data.GetInt();    //是否已经申请添加好友 0:未申请,1:已申请
        playerInfoData.newGuyGift       = data.GetInt();    //新手大礼包:1已购买,0 未购买
        playerInfoData.clubId           = data.GetString(); //俱乐部id,空字符串表示未加入俱乐部
        playerInfoData.clubIco          = data.GetInt();    //俱乐部图标
        playerInfoData.clubInvitedTimes = data.GetInt();    //被俱乐部邀请次数,0为未被邀请
        PlayerHandler.Instance().GC_QUERY_PLAYER_INFO(playerInfoData);
    }
Example #12
0
    /**
     * 老虎机玩家广播2
     * @param playerId 玩家id
     * @param img 图片
     * @param level 等级
     * @param countries 国籍
     * @param name 名字
     */
    public void GC_SLOT_ROOM2(InputMessage data)
    {
        long   playerId  = data.GetLong();
        string img       = data.GetString();
        int    level     = data.GetInt();
        string countries = data.GetString();
        string name      = data.GetString();

        HumanHandler.Instance().GC_SLOT_ROOM2(playerId, img, level, countries, name);
    }
Example #13
0
        private void ParsePreyData(InputMessage message)
        {
            byte slot  = message.GetU8();
            byte state = message.GetU8();

            switch (state)
            {
            case 0: {
                byte lockType = message.GetU8();
                break;
            }

            case 1: {
                break;
            }

            case 2: {
                message.GetString();
                ReadCreatureOutfit(message);
                message.GetU8();
                message.GetU16();
                message.GetU8();
                message.GetU16();
                break;
            }

            case 3: {
                byte size = message.GetU8();
                for (int i = 0; i < size; i++)
                {
                    message.GetString();
                    ReadCreatureOutfit(message);
                }
                break;
            }

            case 4: {
                message.GetU8();
                message.GetU16();
                message.GetU8();
                byte size = message.GetU8();
                for (int i = 0; i < size; i++)
                {
                    message.GetString();
                    ReadCreatureOutfit(message);
                }
                break;
            }

            default:
                break;
            }

            message.GetU16();
        }
Example #14
0
    /**
     * 用户发送完邮件 成功之后 返回展示信息
     * @param sendId 发送人ID
     * @param sendName 发送人名称
     * @param receiveId 收件人ID
     * @param receiveName 收件人 名称
     * @param gold 礼物价值
     * @param sendTime 赠送时间
     */
    public void GC_SEND_FINISH(InputMessage data)
    {
        long   sendId      = data.GetLong();
        string sendName    = data.GetString();
        long   receiveId   = data.GetLong();
        string receiveName = data.GetString();
        long   gold        = data.GetLong();
        long   sendTime    = data.GetLong();

        MailHandler.Instance().GC_SEND_FINISH(sendId, sendName, receiveId, receiveName, gold, sendTime);
    }
Example #15
0
    /**
     * 邀请朋友加入老虎机房间返回
     * @param playerId 发出邀请的角色ID
     * @param friendImg 邀请的好友IMG
     * @param friendName 邀请的好友名字
     * @param slotId 要求加入的老虎机ID
     * @param vipLevel VIP等级
     * @param roomId 房间ID
     */
    public void GC_SLOT_ROOM_PLEASE(InputMessage data)
    {
        long   playerId   = data.GetLong();
        string friendImg  = data.GetString();
        string friendName = data.GetString();
        int    slotId     = data.GetInt();
        int    vipLevel   = data.GetInt();
        string roomId     = data.GetString();

        HumanHandler.Instance().GC_SLOT_ROOM_PLEASE(playerId, friendImg, friendName, slotId, vipLevel, roomId);
    }
Example #16
0
    /**
     * 响应用户校验登录
     * @param loginId 玩家的登录id
     * @param facebookId facebookid
     * @param accountId 账号id
     * @param img 玩家图片
     * @param utcOffset 间距时间
     * @param playerRole 账户类型
     */
    public void GC_CHECK_PLAYER_LOGIN(InputMessage data)
    {
        long   loginId    = data.GetLong();
        string facebookId = data.GetString();
        string accountId  = data.GetString();
        string img        = data.GetString();
        long   utcOffset  = data.GetLong();
        int    playerRole = data.GetInt();

        PlayerHandler.Instance().GC_CHECK_PLAYER_LOGIN(loginId, facebookId, accountId, img, utcOffset, playerRole);
    }
Example #17
0
    /**
     * 发送礼物同步
     * @param friendGiftInfoData 玩家信息
     */
    public void GC_FRIEND_GIFT_SYNC(InputMessage data)
    {
        FriendGiftInfoData friendGiftInfoData = new FriendGiftInfoData();

        friendGiftInfoData.giftId   = data.GetLong();     //礼物id
        friendGiftInfoData.playerId = data.GetLong();     //玩家id
        friendGiftInfoData.name     = data.GetString();   //名字
        friendGiftInfoData.img      = data.GetString();   //图片
        friendGiftInfoData.sendTime = data.GetLong();     //发送时间
        friendGiftInfoData.getTime  = data.GetLong();     //领取时间
        RelationHandler.Instance().GC_FRIEND_GIFT_SYNC(friendGiftInfoData);
    }
    /**
     * 玩家加入
     * @param playerData 玩家信息
     */
    public void GC_BACCART_SYNC_JOIN(InputMessage data)
    {
        BaccartPlayerData playerData = new BaccartPlayerData();

        playerData.playerId = data.GetLong();   //玩家d
        playerData.name     = data.GetString(); //名字
        playerData.img      = data.GetString(); //图像
        playerData.gold     = data.GetLong();   //金币
        playerData.vip      = data.GetInt();    //vip
        playerData.pos      = data.GetInt();    //位置
        BaccartHandler.Instance().GC_BACCART_SYNC_JOIN(playerData);
    }
Example #19
0
    /**
     * 待验证发货订单
     * @param molValidationOrder 待验证订单链表
     */
    public void GC_MOL_ORDER(InputMessage data)
    {
        int       i, size;
        ArrayList molValidationOrder = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            MolValidationOrder molValidationOrder_Datas = new MolValidationOrder();
            molValidationOrder_Datas.referenceId = data.GetString();          //玩家订单
            molValidationOrder_Datas.paymentId   = data.GetString();          //MOL订单
            molValidationOrder.Add(molValidationOrder_Datas);
        }
        RechargeHandler.Instance().GC_MOL_ORDER(molValidationOrder);
    }
    /**
     * 德州玩家坐下
     * @param playerJoin 玩家列表
     */
    public void GC_TEXAS_SEAT(InputMessage data)
    {
        TexasRoomPlayerInfoData playerJoin = new TexasRoomPlayerInfoData();

        playerJoin.playerId    = data.GetLong();   //玩家id
        playerJoin.name        = data.GetString(); //玩家名字
        playerJoin.img         = data.GetString(); //玩家图片
        playerJoin.playerState = data.GetInt();    //玩家状态
        playerJoin.coins       = data.GetLong();   //筹码
        playerJoin.vip         = data.GetInt();    //vip
        playerJoin.pos         = data.GetInt();    //位置
        playerJoin.currentBet  = data.GetLong();   //当前押注
        playerJoin.allBet      = data.GetLong();   //总押注
        TexasHandler.Instance().GC_TEXAS_SEAT(playerJoin);
    }
Example #21
0
    /**
     * 聊天
     * @param channel 频道   喇叭 SPEAKER(0),世界WORLD(1),房间ROOM(2),俱乐部CLUB(3),私聊 PRIVATE(4),百家乐BACCARAT(5);
     * @param fromRoleImg 发送玩家头像
     * @param fromRoleName 发送玩家名字
     * @param fromRoleUUID 发送玩家id
     * @param national 国家
     * @param lv 等级
     * @param viplv vip等级
     * @param rank 排行榜
     * @param sex 性别 1男    2女
     * @param content 内容
     */
    public void GC_CHAT_MSG(InputMessage data)
    {
        int    channel      = data.GetInt();
        string fromRoleImg  = data.GetString();
        string fromRoleName = data.GetString();
        long   fromRoleUUID = data.GetLong();
        string national     = data.GetString();
        int    lv           = data.GetInt();
        int    viplv        = data.GetInt();
        int    rank         = data.GetInt();
        int    sex          = data.GetInt();
        string content      = data.GetString();

        ChatHandler.Instance().GC_CHAT_MSG(channel, fromRoleImg, fromRoleName, fromRoleUUID, national, lv, viplv, rank, sex, content);
    }
Example #22
0
    /**
     * 更改名字
     * @param name 玩家名字
     * @param duplicateNum (如果不是重复,此字段值为null 或者0)重复多语言的ID
     */
    public void GC_HUMAN_CHANGE_NAME(InputMessage data)
    {
        string name         = data.GetString();
        int    duplicateNum = data.GetInt();

        HumanHandler.Instance().GC_HUMAN_CHANGE_NAME(name, duplicateNum);
    }
Example #23
0
    /**
     * 刷新所有的 task列表
     * @param bazooTaskInfo 任务列表
     */
    public void GC_BAZOO_GET_REWARD(InputMessage data)
    {
        int       i, size;
        ArrayList bazooTaskInfo = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            BazooTaskInfo bazooTaskInfo_Datas = new BazooTaskInfo();
            bazooTaskInfo_Datas.taskId      = data.GetInt();       //任务ID
            bazooTaskInfo_Datas.refreshtype = data.GetInt();       //刷新类型  按天:1、按周:2、按月 等等
            bazooTaskInfo_Datas.modeType    = data.GetInt();       //吹牛 的类型 0:不区分模式, 1:吹牛,2:牛牛,3:梭哈
            bazooTaskInfo_Datas.bigType     = data.GetInt();       //大的分类:0:任务,成就:1:胜利者,2:实践家,3:资本家
            bazooTaskInfo_Datas.wayOfPlay   = data.GetInt();       //玩的方式:1:只要玩了就算,2:必须赢了才算,3:连胜
            bazooTaskInfo_Datas.condition   = data.GetInt();       //应该满足的 条件
            bazooTaskInfo_Datas.rewardNum   = data.GetInt();       //应当给予的奖励
            bazooTaskInfo_Datas.finishTimes = data.GetInt();       //用户完成次数
            bazooTaskInfo_Datas.isFinish    = data.GetInt();       //是否完成 0:未完成,1:已完成
            bazooTaskInfo_Datas.nameId      = data.GetInt();       //名称ID
            bazooTaskInfo_Datas.descrip     = data.GetInt();       //描述ID
            bazooTaskInfo_Datas.icon        = data.GetString();    //图标
            bazooTaskInfo.Add(bazooTaskInfo_Datas);
        }
        BazootaskHandler.Instance().GC_BAZOO_GET_REWARD(bazooTaskInfo);
    }
Example #24
0
    /**
     * 修改角色年龄国际返回
     * @param countries 国籍
     * @param age 年龄
     */
    public void GC_CHANEAGE_COUNTRIES(InputMessage data)
    {
        string countries = data.GetString();
        int    age       = data.GetInt();

        HumanHandler.Instance().GC_CHANEAGE_COUNTRIES(countries, age);
    }
Example #25
0
    /**
     * 通知客户端
     * @param code 错误码
     * @param msg 错误信息,如果为空就显示默认的
     */
    public void GC_NOTIFY_EXCEPTION(InputMessage data)
    {
        int    code = data.GetInt();
        string msg  = data.GetString();

        PlayerHandler.Instance().GC_NOTIFY_EXCEPTION(code, msg);
    }
Example #26
0
        private void ParseVipAdd(InputMessage message)
        {
            uint   creatureID  = message.GetU32();
            string name        = message.GetString();
            string desc        = message.GetString();
            uint   icon        = message.GetU32();
            byte   notifyLogin = message.GetU8();
            byte   status      = message.GetU8();

            byte groups = message.GetU8();

            for (int i = 0; i < groups; i++)
            {
                // parse groups
            }
        }
    /**
     * 在线奖励
     * @param humanMiscFBInfoData 内容
     */
    public void GC_MISC_FB_INFO_DATA(InputMessage data)
    {
        HumanMiscFBInfoData humanMiscFBInfoData = new HumanMiscFBInfoData();
        int j;

        humanMiscFBInfoData.fbReward = data.GetInt();        //fb奖励
        ArrayList fbInviteList     = new ArrayList();
        int       fbInviteListSize = data.GetShort();

        for (j = 0; j < fbInviteListSize; j++)
        {
            string fbInviteList_Datas = data.GetString();            //fb邀请信息
            fbInviteList.Add(fbInviteList_Datas);
        }
        humanMiscFBInfoData.fbInviteList = fbInviteList;
        ArrayList fbInviteRewardList     = new ArrayList();
        int       fbInviteRewardListSize = data.GetShort();

        for (j = 0; j < fbInviteRewardListSize; j++)
        {
            int fbInviteRewardList_Datas = data.GetInt();            //fb邀请奖励信息
            fbInviteRewardList.Add(fbInviteRewardList_Datas);
        }
        humanMiscFBInfoData.fbInviteRewardList = fbInviteRewardList;
        humanMiscFBInfoData.fbThumb            = data.GetInt();  //fb点赞奖励 1 领取
        humanMiscFBInfoData.fbstartTime        = data.GetLong(); //fb邀请好友刷新时间
        MiscHandler.Instance().GC_MISC_FB_INFO_DATA(humanMiscFBInfoData);
    }
Example #28
0
    /**
     * 获取成就数据返回
     * @param achievementStateData 成就完成情况
     * @param achievementsProgressData 成就进度
     */
    public void GC_ACH_INFO(InputMessage data)
    {
        int       i, size;
        ArrayList achievementStateData = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            AchievementStateData achievementStateData_Datas = new AchievementStateData();
            achievementStateData_Datas.id           = data.GetInt();  //成就ID
            achievementStateData_Datas.state        = data.GetInt();  //1 没有完成 2 已经完成但没有领取 3 已经领取
            achievementStateData_Datas.completeTime = data.GetLong();
            achievementStateData.Add(achievementStateData_Datas);
        }
        ArrayList achievementsProgressData = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            AchievementsProgressData achievementsProgressData_Datas = new AchievementsProgressData();
            achievementsProgressData_Datas.serverType = data.GetInt();          //大类型
            achievementsProgressData_Datas.smalType   = data.GetInt();          //小类型
            achievementsProgressData_Datas.value      = data.GetString();       //当前值
            achievementsProgressData.Add(achievementsProgressData_Datas);
        }
        AchievementHandler.Instance().GC_ACH_INFO(achievementStateData, achievementsProgressData);
    }
Example #29
0
    /**
     * 领取任务进度奖励返回
     * @param boxId 宝箱ID
     * @param taskNum 已完成任务个数
     * @param taskProcges 已经领取奖励ID逗号隔开
     */
    public void GC_TASK_PROGRESS(InputMessage data)
    {
        int    boxId       = data.GetInt();
        int    taskNum     = data.GetInt();
        string taskProcges = data.GetString();

        TaskHandler.Instance().GC_TASK_PROGRESS(boxId, taskNum, taskProcges);
    }
Example #30
0
    /**
     * 更换色钟 通知房间内所有人 自己更换了色钟
     * @param playerId 更换色钟图片的玩家ID
     * @param itemId 目标色钟的itemId
     * @param img 道具图片
     */
    public void GC_BAZOO_ITEM_CLOCK_CHANGE_TO_ALL(InputMessage data)
    {
        long   playerId = data.GetLong();
        int    itemId   = data.GetInt();
        string img      = data.GetString();

        ItemHandler.Instance().GC_BAZOO_ITEM_CLOCK_CHANGE_TO_ALL(playerId, itemId, img);
    }