public override void Deserialize(IDataReader reader)
        {
            var startedAchievementsCount = reader.ReadUShort();

            StartedAchievements = new List <Types.Game.Achievement.Achievement>();
            for (var startedAchievementsIndex = 0;
                 startedAchievementsIndex < startedAchievementsCount;
                 startedAchievementsIndex++)
            {
                var objectToAdd = new Types.Game.Achievement.Achievement();
                objectToAdd.Deserialize(reader);
                StartedAchievements.Add(objectToAdd);
            }
            var finishedAchievementsCount = reader.ReadUShort();

            FinishedAchievements = new List <Types.Game.Achievement.Achievement>();
            for (var finishedAchievementsIndex = 0;
                 finishedAchievementsIndex < finishedAchievementsCount;
                 finishedAchievementsIndex++)
            {
                var objectToAdd = new Types.Game.Achievement.Achievement();
                objectToAdd.Deserialize(reader);
                FinishedAchievements.Add(objectToAdd);
            }
        }
 public override void Deserialize(IDataReader reader)
 {
     Achievement = new Types.Game.Achievement.Achievement();
     Achievement.Deserialize(reader);
 }
Пример #3
0
 public override void Deserialize(BigEndianReader reader)
 {
     Achievement = new Types.Game.Achievement.Achievement();
     Achievement.Deserialize(reader);
 }