public override void Deserialize(IDataReader reader) { uint num = (uint)reader.ReadUShort(); for (int index = 0; (long)index < (long)num; ++index) { AchievementAchieved instance = ProtocolTypeManager.GetInstance <AchievementAchieved>((uint)reader.ReadUShort()); instance.Deserialize(reader); this.finishedAchievements.Add(instance); } }
public override void Deserialize(IDataReader reader) { var FinishedAchievementsCount = reader.ReadShort(); FinishedAchievements = new List <AchievementAchieved>(); for (var i = 0; i < FinishedAchievementsCount; i++) { AchievementAchieved objectToAdd = ProtocolTypeManager.GetInstance(reader.ReadUShort()); objectToAdd.Deserialize(reader); FinishedAchievements.Add(objectToAdd); } }
public override void Deserialize(ICustomDataInput reader) { var countFinishedAchievements = reader.ReadShort(); FinishedAchievements = new List <AchievementAchieved>(); for (short i = 0; i < countFinishedAchievements; i++) { var finishedAchievementstypeId = reader.ReadShort(); AchievementAchieved type = new AchievementAchieved(); type.Deserialize(reader); FinishedAchievements.Add(type); } }
public override void Deserialize(IDataReader reader) { ushort id = 0; var achievement = new AchievementAchieved(); var finishedAchievementsIdsCount = reader.ReadUShort(); for (var finishedAchievementsIdsIndex = 0; finishedAchievementsIdsIndex < finishedAchievementsIdsCount; finishedAchievementsIdsIndex++) { id = reader.ReadUShort(); achievement = ProtocolTypeManager.GetInstance <AchievementAchieved>(id); achievement.Deserialize(reader); FinishedAchievementsIds.Add(achievement); } }