예제 #1
0
        public override void Deserialize(IDataReader reader)
        {
            uint num = (uint)reader.ReadUShort();

            for (int index = 0; (long)index < (long)num; ++index)
            {
                BreachReward breachReward = new BreachReward();
                breachReward.Deserialize(reader);
                this.rewards.Add(breachReward);
            }
            this.save = new BreachReward();
            this.save.Deserialize(reader);
        }
예제 #2
0
        public override void Deserialize(ICustomDataInput reader)
        {
            var countRewards = reader.ReadShort();

            Rewards = new List <BreachReward>();
            for (short i = 0; i < countRewards; i++)
            {
                BreachReward type = new BreachReward();
                type.Deserialize(reader);
                Rewards.Add(type);
            }
            Save = new BreachReward();
            Save.Deserialize(reader);
        }
예제 #3
0
        public override void Deserialize(IDataReader reader)
        {
            var RewardsCount = reader.ReadShort();

            Rewards = new List <BreachReward>();
            for (var i = 0; i < RewardsCount; i++)
            {
                var objectToAdd = new BreachReward();
                objectToAdd.Deserialize(reader);
                Rewards.Add(objectToAdd);
            }
            Save = new BreachReward();
            Save.Deserialize(reader);
        }