public override void Deserialize(IDataReader reader) { base.Deserialize(reader); m_nbWaves = reader.ReadByte(); int alternativesCount = reader.ReadUShort(); int alternativesIndex; m_alternatives = new System.Collections.Generic.List<GroupMonsterStaticInformations>(); for (alternativesIndex = 0; (alternativesIndex < alternativesCount); alternativesIndex = (alternativesIndex + 1)) { GroupMonsterStaticInformations objectToAdd = ProtocolTypeManager.GetInstance<GroupMonsterStaticInformations>((short)reader.ReadUShort()); objectToAdd.Deserialize(reader); m_alternatives.Add(objectToAdd); } }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); byte flag = reader.ReadByte(); m_keyRingBonus = BooleanByteWrapper.GetFlag(flag, 0); m_hasHardcoreDrop = BooleanByteWrapper.GetFlag(flag, 1); m_hasAVARewardToken = BooleanByteWrapper.GetFlag(flag, 2); m_staticInfos = ProtocolTypeManager.GetInstance <GroupMonsterStaticInformations>((short)reader.ReadUShort()); m_staticInfos.Deserialize(reader); m_creationTime = reader.ReadDouble(); m_ageBonusRate = reader.ReadInt(); m_lootShare = reader.ReadByte(); m_alignmentSide = reader.ReadByte(); }