/**
     * 在线奖励
     * @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);
    }
Beispiel #2
0
    /**
     * 在线奖励
     * @param reward 内容
     */
    public void GC_ONLINE_REWARD(InputMessage data)
    {
        RandRewardData reward = new RandRewardData();

        reward.rewardId    = data.GetInt();     //奖励id
        reward.rewardCount = data.GetInt();     //奖励数量
        MiscHandler.Instance().GC_ONLINE_REWARD(reward);
    }
    /**
     * 在线奖励
     * @param reward 内容
     */
    public void GC_ONLINE_REWARD(InputMessage data)
    {
        RandRewardData reward = new RandRewardData();

        reward.rewardId    = data.GetInt();     //奖励id
        reward.rewardCount = data.GetInt();     //奖励数量
        reward.vippoint    = data.GetInt();     //全服的赠送奖励 (只有全服的才根据 这个vippoint 给用户赠送奖励)
        reward.giftNewId   = data.GetInt();     //用户给用户发送礼物的时候的 礼物ID 主要用于标识 礼物是啥 而且 需要花费多少金币
        MiscHandler.Instance().GC_ONLINE_REWARD(reward);
    }
    /**
     * 在线奖励
     * @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);
    }
    /**
     * fb邀请
     * @param fbInviteIdList 好友列表
     */
    public void GC_FB_INVITE(InputMessage data)
    {
        int       i, size;
        ArrayList fbInviteIdList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            string fbInviteIdList_Datas = data.GetString();
            fbInviteIdList.Add(fbInviteIdList_Datas);
        }
        MiscHandler.Instance().GC_FB_INVITE(fbInviteIdList);
    }
Beispiel #6
0
    /**
     * fb邀请奖励
     * @param randRewardList 道具奖励
     */
    public void GC_FB_INVITE_GET_REWARD(InputMessage data)
    {
        int       i, size;
        ArrayList randRewardList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            RandRewardData randRewardList_Datas = new RandRewardData();
            randRewardList_Datas.rewardId    = data.GetInt();         //奖励id
            randRewardList_Datas.rewardCount = data.GetInt();         //奖励数量
            randRewardList.Add(randRewardList_Datas);
        }
        MiscHandler.Instance().GC_FB_INVITE_GET_REWARD(randRewardList);
    }
    /**
     * fb邀请奖励
     * @param randRewardList 道具奖励
     */
    public void GC_FB_INVITE_GET_REWARD(InputMessage data)
    {
        int       i, size;
        ArrayList randRewardList = new ArrayList();

        size = data.GetShort();
        for (i = 0; i < size; i++)
        {
            RandRewardData randRewardList_Datas = new RandRewardData();
            randRewardList_Datas.rewardId    = data.GetInt();         //奖励id
            randRewardList_Datas.rewardCount = data.GetInt();         //奖励数量
            randRewardList_Datas.vippoint    = data.GetInt();         //全服的赠送奖励 (只有全服的才根据 这个vippoint 给用户赠送奖励)
            randRewardList_Datas.giftNewId   = data.GetInt();         //用户给用户发送礼物的时候的 礼物ID 主要用于标识 礼物是啥 而且 需要花费多少金币
            randRewardList.Add(randRewardList_Datas);
        }
        MiscHandler.Instance().GC_FB_INVITE_GET_REWARD(randRewardList);
    }
    /**
     * 韩国推广奖励
     * @param rewardNum 奖励
     */
    public void GC_KOREAN_SB(InputMessage data)
    {
        int rewardNum = data.GetInt();

        MiscHandler.Instance().GC_KOREAN_SB(rewardNum);
    }
 /**
  * 新手引导
  */
 public void GC_NEW_USER(InputMessage data)
 {
     MiscHandler.Instance().GC_NEW_USER();
 }