Пример #1
0
    /**
     * 加入德州
     * @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);
    }
Пример #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);
    }
Пример #3
0
    /**
     * 活动列表
     * @param activityDataList 活动信息
     */
    public void GC_ACTIVITY_LIST(InputMessage data)
    {
        int       i, size;
        ArrayList activityDataList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            ActivityData activityDataList_Datas = new ActivityData();
            activityDataList_Datas.activityId  = data.GetLong();
            activityDataList_Datas.title       = data.GetString();  //标题
            activityDataList_Datas.title_cn    = data.GetString();  //中文标题
            activityDataList_Datas.title_tw    = data.GetString();  //繁体标题
            activityDataList_Datas.desc        = data.GetString();  //描述
            activityDataList_Datas.desc_cn     = data.GetString();  //中文描述
            activityDataList_Datas.desc_tw     = data.GetString();  //繁体描述
            activityDataList_Datas.hall_pic_tw = data.GetString();  //大厅图片,中文繁体
            activityDataList_Datas.hall_pic_cn = data.GetString();  //大厅图片,中文简体
            activityDataList_Datas.hall_pic    = data.GetString();  //大厅图片
            activityDataList_Datas.pic         = data.GetString();  //图片
            activityDataList_Datas.pic_cn      = data.GetString();  //图片描述
            activityDataList_Datas.pic_tw      = data.GetString();  //图片描述
            activityDataList_Datas.link        = data.GetInt();     //跳转链接
            activityDataList_Datas.ruleSre     = data.GetString();  //规则数据
            activityDataList_Datas.startTime   = data.GetLong();
            activityDataList_Datas.endTime     = data.GetLong();
            activityDataList_Datas.fullValue   = data.GetString();          //全服累计金币 或者 次数 或者其他
            activityDataList.Add(activityDataList_Datas);
        }
        ActivityHandler.Instance().GC_ACTIVITY_LIST(activityDataList);
    }
Пример #4
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);
    }
Пример #5
0
    /**
     * 服务器给客户端下发人物全信息
     * @param human 玩家
     */
    public void GC_HUMAN_DETAIL_INFO(InputMessage data)
    {
        HumanInfoData human = new HumanInfoData();

        human.roleId             = data.GetLong();   //人物角色UUID
        human.name               = data.GetString(); //名字
        human.sex                = data.GetInt();    //性别
        human.level              = data.GetLong();   //级别
        human.vipLevel           = data.GetLong();   //VIP 等级
        human.diamond            = data.GetLong();   //钻石
        human.gold               = data.GetLong();   //金币
        human.curExp             = data.GetLong();   //经验
        human.maxExp             = data.GetLong();   //经验上限
        human.charm              = data.GetLong();   //魅力值
        human.sceneId            = data.GetInt();    //当前所在城镇ID
        human.gvfirst            = data.GetString(); //gameview首次充值记录
        human.newguide           = data.GetString(); //0 大礼包 1 百家乐 2 德州 3 老虎
        human.watchNum           = data.GetInt();    //视频观看次数
        human.countries          = data.GetString(); //国籍
        human.integral           = data.GetLong();   //排行榜积分
        human.newGuyGift         = data.GetInt();    //新手大礼包:1已购买,0 未购买
        human.todayView          = data.GetInt();    //1 当天已经显示,0 当天未显示
        human.bazooNewGuyProcess = data.GetString(); //新手的进度({classicCompleted:0, niuniuCompleted:0, showhandCompleted:0, redblackCompleted:0})
        human.bazooGold          = data.GetLong();   //无双吹牛 用户金币的数量
        human.bazooRoom          = data.GetString(); //无双吹牛   用户所在的房间
        HumanHandler.Instance().GC_HUMAN_DETAIL_INFO(human);
    }
Пример #6
0
    /**
     * 返回    周、月特惠充值活动的时间
     * @param weekLeftTime 秒
     * @param monthLeftTime 秒
     */
    public void GC_MONTH_WEEK_LEFT_TIME(InputMessage data)
    {
        long weekLeftTime  = data.GetLong();
        long monthLeftTime = data.GetLong();

        ActivityHandler.Instance().GC_MONTH_WEEK_LEFT_TIME(weekLeftTime, monthLeftTime);
    }
Пример #7
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);
    }
    /**
     * 百家乐下注
     * @param bankerCardList 庄家牌
     * @param playerCardList 闲家牌
     * @param pearlRoadData 珠盘路
     * @param settleDataList 赢钱列表
     */
    public void GC_BACCART_SETTLE(InputMessage data)
    {
        int       i, size;
        ArrayList bankerCardList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            int bankerCardList_Datas = data.GetInt();
            bankerCardList.Add(bankerCardList_Datas);
        }
        ArrayList playerCardList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            int playerCardList_Datas = data.GetInt();
            playerCardList.Add(playerCardList_Datas);
        }
        PearlRoadData pearlRoadData = new PearlRoadData();

        pearlRoadData.baccartPair   = data.GetInt();      //百家乐对子
        pearlRoadData.baccartResult = data.GetInt();      //百家乐结果
        ArrayList settleDataList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            BaccartSettleData settleDataList_Datas = new BaccartSettleData();
            settleDataList_Datas.playerId = data.GetLong();
            settleDataList_Datas.winCoins = data.GetLong();
            settleDataList.Add(settleDataList_Datas);
        }
        BaccartHandler.Instance().GC_BACCART_SETTLE(bankerCardList, playerCardList, pearlRoadData, settleDataList);
    }
Пример #9
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);
    }
Пример #10
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);
    }
Пример #11
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);
    }
Пример #12
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);
    }
Пример #13
0
    /**
     * 老虎机玩家广播3
     * @param playerId 玩家id
     * @param gold 玩家筹码
     */
    public void GC_SLOT_ROOM3(InputMessage data)
    {
        long playerId = data.GetLong();
        long gold     = data.GetLong();

        HumanHandler.Instance().GC_SLOT_ROOM3(playerId, gold);
    }
Пример #14
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);
    }
Пример #15
0
    /**
     * 请求自己的排名返回
     * @param rank 自己的排名
     * @param win 玩家积分
     * @param refreshPoint 结算下次刷新点
     */
    public void GC_HUMAN_RANK(InputMessage data)
    {
        int  rank         = data.GetInt();
        long win          = data.GetLong();
        long refreshPoint = data.GetLong();

        RanknewHandler.Instance().GC_HUMAN_RANK(rank, win, refreshPoint);
    }
Пример #16
0
    /**
     * 显示 返回
     * @param gold 玩家 游戏中的筹码
     * @param bankGold 玩家 银行中的筹码
     * @param totalGold 玩家 总资产(游戏中的筹码+银行中的筹码)
     */
    public void GC_BANK_VIEW(InputMessage data)
    {
        long gold      = data.GetLong();
        long bankGold  = data.GetLong();
        long totalGold = data.GetLong();

        HumanHandler.Instance().GC_BANK_VIEW(gold, bankGold, totalGold);
    }
Пример #17
0
    /**
     * 发送互动道具
     * @param fromId 发送玩家id
     * @param itemId 互动道具id
     * @param toId 玩家id
     */
    public void GC_SEND_INTERACTIVE_ITEM(InputMessage data)
    {
        long fromId = data.GetLong();
        int  itemId = data.GetInt();
        long toId   = data.GetLong();

        ItemHandler.Instance().GC_SEND_INTERACTIVE_ITEM(fromId, itemId, toId);
    }
Пример #18
0
    /**
     * 新手礼包
     * @param openShut 是否开启 礼包 (0:开启,1:关闭),如果是 1 就关闭礼包
     * @param giftType 礼包类型 限时0,不限时 1
     * @param leftTime 剩余时间
     * @param pid 礼包 pid
     */
    public void GC_NEW_COMER_GIFT(InputMessage data)
    {
        int  openShut = data.GetInt();
        int  giftType = data.GetInt();
        long leftTime = data.GetLong();
        long pid      = data.GetLong();

        GiftHandler.Instance().GC_NEW_COMER_GIFT(openShut, giftType, leftTime, pid);
    }
Пример #19
0
    /**
     * 月卡数据
     * @param monthCardInfoData 月 卡数据
     */
    public void GC_HUMAN_MONTH_CARD_INFO_DATA(InputMessage data)
    {
        HumanMonthCardInfoData monthCardInfoData = new HumanMonthCardInfoData();

        monthCardInfoData.beginTime = data.GetLong();      //开始时间
        monthCardInfoData.getTime   = data.GetLong();      //领取时间
        monthCardInfoData.duration  = data.GetLong();      //持续时间
        MonthcardHandler.Instance().GC_HUMAN_MONTH_CARD_INFO_DATA(monthCardInfoData);
    }
Пример #20
0
    /**
     * 周卡数据
     * @param weekCardInfoData 周卡数据
     */
    public void GC_HUMAN_WEEK_CARD_INFO_DATA(InputMessage data)
    {
        HumanWeekCardInfoData weekCardInfoData = new HumanWeekCardInfoData();

        weekCardInfoData.beginTime = data.GetLong();      //开始时间
        weekCardInfoData.getTime   = data.GetLong();      //领取时间
        weekCardInfoData.duration  = data.GetLong();      //持续时间
        WeekcardHandler.Instance().GC_HUMAN_WEEK_CARD_INFO_DATA(weekCardInfoData);
    }
Пример #21
0
    /**
     * 返回当前存钱罐的 对象
     * @param typeTreasury 类型 总共 六种   0,1,2,3,4,5
     * @param curGold 当前金币
     * @param maxTreasury 作者:存储上限
     * @param vipPointTreasury 作者:VIP点数奖励
     */
    public void GC_TREASURY(InputMessage data)
    {
        long typeTreasury     = data.GetLong();
        long curGold          = data.GetLong();
        long maxTreasury      = data.GetLong();
        long vipPointTreasury = data.GetLong();

        TreasuryHandler.Instance().GC_TREASURY(typeTreasury, curGold, maxTreasury, vipPointTreasury);
    }
Пример #22
0
    /**
     * 老虎机房间发礼物
     * @param send_playerId 发送者ID
     * @param giftId 礼物ID
     * @param send_type 发送类型 0 个人 1 全体
     * @param rece_playerId 接收者ID在发送类型是0的时候有效果
     */
    public void GC_SLOT_ROOM_GIFT(InputMessage data)
    {
        long send_playerId = data.GetLong();
        int  giftId        = data.GetInt();
        int  send_type     = data.GetInt();
        long rece_playerId = data.GetLong();

        HumanHandler.Instance().GC_SLOT_ROOM_GIFT(send_playerId, giftId, send_type, rece_playerId);
    }
Пример #23
0
    /**
     * boss的开始结束信息
     * @param bossType 下一个worldBoss的类型
     * @param beKilled 是否 被击杀 1:被击杀- 0:没有被击杀
     * @param startEndRuning 0:开启,1:关闭, 2:进行中
     * @param nextBossLeftTime 距离 下一个boss 开始的剩余时间 (秒)
     * @param curBossLeftTime 当前的boss 剩余时间 (秒)
     */
    public void GC_BOSS_START_END_INFO(InputMessage data)
    {
        int  bossType         = data.GetInt();
        int  beKilled         = data.GetInt();
        int  startEndRuning   = data.GetInt();
        long nextBossLeftTime = data.GetLong();
        long curBossLeftTime  = data.GetLong();

        WorldbossHandler.Instance().GC_BOSS_START_END_INFO(bossType, beKilled, startEndRuning, nextBossLeftTime, curBossLeftTime);
    }
Пример #24
0
    /**
     * vip数据
     * @param vipInfoData vip数据
     */
    public void GC_HUMAN_VIP_INFO_DATA(InputMessage data)
    {
        HumanVipInfoData vipInfoData = new HumanVipInfoData();

        vipInfoData.lastGetTime = data.GetLong(); //vip领取时间
        vipInfoData.level       = data.GetInt();  //vip领取时间
        vipInfoData.buyTime     = data.GetLong(); //购买时间
        vipInfoData.days        = data.GetInt();  //天数
        VipHandler.Instance().GC_HUMAN_VIP_INFO_DATA(vipInfoData);
    }
    /**
     * 百家乐玩家信息
     * @param humanBaccartData 百家乐
     */
    public void GC_HUMAN_BACCART(InputMessage data)
    {
        HumanBaccartData humanBaccartData = new HumanBaccartData();

        humanBaccartData.gameNum   = data.GetLong();     //游戏数
        humanBaccartData.winNum    = data.GetLong();     //赢局数
        humanBaccartData.beaconNum = data.GetLong();     //明灯数
        humanBaccartData.playerId  = data.GetLong();     //玩家id
        BaccartHandler.Instance().GC_HUMAN_BACCART(humanBaccartData);
    }
Пример #26
0
    /**
     * 在线奖励
     * @param humanMiscInfoData 内容
     */
    public void GC_MISC_INFO_DATA(InputMessage data)
    {
        HumanMiscInfoData humanMiscInfoData = new HumanMiscInfoData();

        humanMiscInfoData.onlineTime            = data.GetLong(); //在线时长
        humanMiscInfoData.currentOnlineRewardId = data.GetInt();  //在线时长
        humanMiscInfoData.firstRechargeTime     = data.GetLong(); //首冲时间
        humanMiscInfoData.renameTimes           = data.GetInt();  //改名次数
        humanMiscInfoData.newUser = data.GetInt();                //新手玩家
        MiscHandler.Instance().GC_MISC_INFO_DATA(humanMiscInfoData);
    }
Пример #27
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);
    }
Пример #28
0
    /**
     * 返回
     * @param fromPlayerGold 发送者的金币数量
     * @param fromPlayerId 谁发的
     * @param toPlayerId 发给谁
     * @param itemId 礼物ID
     * @param number 礼物数量
     * @param itemType 礼物类型(2:色钟,3:红包,4:礼物)
     */
    public void GC_BAZOO_SEND_GIFT(InputMessage data)
    {
        long fromPlayerGold = data.GetLong();
        long fromPlayerId   = data.GetLong();
        long toPlayerId     = data.GetLong();
        int  itemId         = data.GetInt();
        int  number         = data.GetInt();
        int  itemType       = data.GetInt();

        BazoogiftHandler.Instance().GC_BAZOO_SEND_GIFT(fromPlayerGold, fromPlayerId, toPlayerId, itemId, number, itemType);
    }
Пример #29
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);
    }
    /**
     * 玩家加入
     * @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);
    }