Beispiel #1
0
        public bool Deserialize(Stream stream)
        {
            BinaryReader input = new BinaryReader(stream);
            // result
            if (Yippee.Net.Internal.Deserialize(input, out result_) == false)
            {
                return false;
            }
            // rewards
            uint rewardsLength = 0;
            if (Yippee.Net.Internal.Deserialize(input, out rewardsLength) == false)
            {
                return false;
            }
            Array.Resize(ref rewards_, (int)rewardsLength);
            for (uint i = 0; i < rewardsLength; ++i)
            {
                reward_info newRewards = new reward_info();
                if (newRewards.Deserialize(stream) == false)
                {
                    return false;
                }
                rewards_[i] = newRewards;
            }

            return true;
        }
Beispiel #2
0
        public bool Deserialize(Stream stream)
        {
            BinaryReader input = new BinaryReader(stream);
            // daySeq
            if (Yippee.Net.Internal.Deserialize(input, out daySeq_) == false)
            {
                return false;
            }
            // reward
            if (reward_.Deserialize(stream) == false)
            {
                return false;
            }
            // receiveReward
            if (Yippee.Net.Internal.Deserialize(input, out receiveReward_) == false)
            {
                return false;
            }
            // complete
            if (Yippee.Net.Internal.Deserialize(input, out complete_) == false)
            {
                return false;
            }

            return true;
        }
Beispiel #3
0
        public bool Deserialize(Stream stream)
        {
            BinaryReader input = new BinaryReader(stream);
            // result
            if (Yippee.Net.Internal.Deserialize(input, out result_) == false)
            {
                return false;
            }
            // reward
            if (reward_.Deserialize(stream) == false)
            {
                return false;
            }

            return true;
        }
Beispiel #4
0
        public bool Deserialize(Stream stream)
        {
            BinaryReader input = new BinaryReader(stream);

            // gpPoint
            if (Yippee.Net.Internal.Deserialize(input, out gpPoint_) == false)
            {
                return(false);
            }
            // repeatCount
            if (Yippee.Net.Internal.Deserialize(input, out repeatCount_) == false)
            {
                return(false);
            }
            // rewardDate
            if (Yippee.Net.Internal.Deserialize(input, out rewardDate_) == false)
            {
                return(false);
            }
            // repeatReward
            if (repeatReward_.Deserialize(stream) == false)
            {
                return(false);
            }
            // league
            {
                int value = 0;
                if (Yippee.Net.Internal.Deserialize(input, out value) == false)
                {
                    return(false);
                }
                league_ = (grandprix_league)value;
            }
            // myRank
            if (Yippee.Net.Internal.Deserialize(input, out myRank_) == false)
            {
                return(false);
            }
            // myRankPercentile
            if (Yippee.Net.Internal.Deserialize(input, out myRankPercentile_) == false)
            {
                return(false);
            }

            return(true);
        }
Beispiel #5
0
        public bool Deserialize(Stream stream)
        {
            BinaryReader input = new BinaryReader(stream);

            // videoAd
            if (videoAd_.Deserialize(stream) == false)
            {
                return(false);
            }
            // nextVideoAdTime
            if (Yippee.Net.Internal.Deserialize(input, out nextVideoAdTime_) == false)
            {
                return(false);
            }
            // fbPost
            if (fbPost_.Deserialize(stream) == false)
            {
                return(false);
            }
            // nextFbPost
            if (Yippee.Net.Internal.Deserialize(input, out nextFbPost_) == false)
            {
                return(false);
            }
            // fbInvite
            if (fbInvite_.Deserialize(stream) == false)
            {
                return(false);
            }
            // goldBonus
            if (goldBonus_.Deserialize(stream) == false)
            {
                return(false);
            }
            // nextGoldBonus
            if (Yippee.Net.Internal.Deserialize(input, out nextGoldBonus_) == false)
            {
                return(false);
            }

            return(true);
        }
        public bool Deserialize(Stream stream)
        {
            BinaryReader input = new BinaryReader(stream);

            // missionId
            if (Yippee.Net.Internal.Deserialize(input, out missionId_) == false)
            {
                return(false);
            }
            // dataKey
            {
                int value = 0;
                if (Yippee.Net.Internal.Deserialize(input, out value) == false)
                {
                    return(false);
                }
                dataKey_ = (mission_data_key)value;
            }
            // progress
            if (Yippee.Net.Internal.Deserialize(input, out progress_) == false)
            {
                return(false);
            }
            // goal
            if (Yippee.Net.Internal.Deserialize(input, out goal_) == false)
            {
                return(false);
            }
            // receiveReward
            if (Yippee.Net.Internal.Deserialize(input, out receiveReward_) == false)
            {
                return(false);
            }
            // reward
            if (reward_.Deserialize(stream) == false)
            {
                return(false);
            }

            return(true);
        }