Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
        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);
            }
        }
Ejemplo n.º 4
0
        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);
            }
        }