Esempio n. 1
0
 public virtual void Deserialize(BigEndianReader reader)
 {
     Id = reader.ReadShort();
     var limit = reader.ReadUShort();
     FinishedObjective = new AchievementObjective[limit];
     for (int i = 0; i < limit; i++)
     {
         FinishedObjective[i] = new AchievementObjective();
         FinishedObjective[i].Deserialize(reader);
     }
     limit = reader.ReadUShort();
     StartedObjectives = new AchievementStartedObjective[limit];
     for (int i = 0; i < limit; i++)
     {
         StartedObjectives[i] = new AchievementStartedObjective();
         StartedObjectives[i].Deserialize(reader);
     }
 }
Esempio n. 2
0
 public Achievement(short id, AchievementObjective[] finishedObjective, AchievementStartedObjective[] startedObjectives)
 {
     Id = id;
     FinishedObjective = finishedObjective;
     StartedObjectives = startedObjectives;
 }