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(BigEndianReader reader)
 {
     var limit = reader.ReadUShort();
     StartedAchievements = new Types.Game.Achievement.Achievement[limit];
     for (int i = 0; i < limit; i++)
     {
         StartedAchievements[i] = new Types.Game.Achievement.Achievement();
         StartedAchievements[i].Deserialize(reader);
     }
     limit = reader.ReadUShort();
     FinishedAchievements = new Types.Game.Achievement.Achievement[limit];
     for (int i = 0; i < limit; i++)
     {
         FinishedAchievements[i] = new Types.Game.Achievement.Achievement();
         FinishedAchievements[i].Deserialize(reader);
     }
 }
 public AchievementDetailsMessage(Types.Game.Achievement.Achievement achievement)
 {
     Achievement = achievement;
 }
 public override void Deserialize(IDataReader reader)
 {
     Achievement = new Types.Game.Achievement.Achievement();
     Achievement.Deserialize(reader);
 }
Пример #5
0
 public override void Deserialize(BigEndianReader reader)
 {
     Achievement = new Types.Game.Achievement.Achievement();
     Achievement.Deserialize(reader);
 }