public GameRolePlayGroupMonsterInformations(double contextualId, EntityLook look, EntityDispositionInformations disposition, bool keyRingBonus, bool hasHardcoreDrop, bool hasAVARewardToken, GroupMonsterStaticInformations staticInfos, double creationTime, int ageBonusRate, sbyte lootShare, sbyte alignmentSide) : base(contextualId, look, disposition) { this.keyRingBonus = keyRingBonus; this.hasHardcoreDrop = hasHardcoreDrop; this.hasAVARewardToken = hasAVARewardToken; this.staticInfos = staticInfos; this.creationTime = creationTime; this.ageBonusRate = ageBonusRate; this.lootShare = lootShare; this.alignmentSide = alignmentSide; }
public override void Serialize(IDataWriter writer) { base.Serialize(writer); writer.WriteSByte(this.nbWaves); writer.WriteShort((short)((int)this.alternatives.Length)); GroupMonsterStaticInformations[] groupMonsterStaticInformationsArray = this.alternatives; for (int i = 0; i < (int)groupMonsterStaticInformationsArray.Length; i++) { GroupMonsterStaticInformations groupMonsterStaticInformation = groupMonsterStaticInformationsArray[i]; writer.WriteShort(groupMonsterStaticInformation.TypeId); groupMonsterStaticInformation.Serialize(writer); } }
public override void Deserialize(IDataReader reader) { base.Deserialize(reader); byte num = reader.ReadByte(); this.keyRingBonus = BooleanByteWrapper.GetFlag(num, 0); this.hasHardcoreDrop = BooleanByteWrapper.GetFlag(num, 1); this.hasAVARewardToken = BooleanByteWrapper.GetFlag(num, 2); this.staticInfos = ProtocolTypeManager.GetInstance <GroupMonsterStaticInformations>(reader.ReadUShort()); this.staticInfos.Deserialize(reader); this.creationTime = reader.ReadDouble(); this.ageBonusRate = reader.ReadInt(); this.lootShare = reader.ReadSByte(); this.alignmentSide = reader.ReadSByte(); }
public GameRolePlayGroupMonsterWaveInformations(double contextualId, EntityLook look, EntityDispositionInformations disposition, bool keyRingBonus, bool hasHardcoreDrop, bool hasAVARewardToken, GroupMonsterStaticInformations staticInfos, double creationTime, int ageBonusRate, sbyte lootShare, sbyte alignmentSide, sbyte nbWaves, GroupMonsterStaticInformations[] alternatives) : base(contextualId, look, disposition, keyRingBonus, hasHardcoreDrop, hasAVARewardToken, staticInfos, creationTime, ageBonusRate, lootShare, alignmentSide) { this.nbWaves = nbWaves; this.alternatives = alternatives; }