Пример #1
0
 public GameRolePlayGroupMonsterWaveInformations(int contextualId,
                                                 EntityLook look,
                                                 EntityDispositionInformations disposition,
                                                 bool keyRingBonus,
                                                 bool hasHardcoreDrop,
                                                 bool hasAVARewardToken,
                                                 GroupMonsterStaticInformations staticInfos,
                                                 double creationDate,
                                                 uint ageBonus,
                                                 sbyte lootShare,
                                                 sbyte alignmentSide,
                                                 sbyte nbWaves,
                                                 IEnumerable <GroupMonsterStaticInformations> alternatives)
     : base(contextualId, look, disposition, keyRingBonus, hasHardcoreDrop, hasAVARewardToken, staticInfos, creationDate, ageBonus, lootShare, alignmentSide)
 {
     this.nbWaves      = nbWaves;
     this.alternatives = alternatives;
 }
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            byte flag1 = reader.ReadByte();

            this.keyRingBonus      = BooleanByteWrapper.GetFlag(flag1, 0);
            this.hasHardcoreDrop   = BooleanByteWrapper.GetFlag(flag1, 1);
            this.hasAVARewardToken = BooleanByteWrapper.GetFlag(flag1, 2);
            this.staticInfos       = ProtocolTypeManager.GetInstance <GroupMonsterStaticInformations>(reader.ReadShort());
            this.staticInfos.Deserialize(reader);
            this.creationDate = reader.ReadDouble();
            this.ageBonusRate = reader.ReadUInt();
            this.lootShare    = reader.ReadSByte();

            if ((this.lootShare < -1) || (this.lootShare > 8))
            {
                throw new Exception("Forbidden value on lootShare = " + this.lootShare + ", it doesn't respect the following condition : (lootShare < -1) || (lootShare > 8)");
            }
            this.alignmentSide = reader.ReadSByte();
        }
 public GameRolePlayGroupMonsterInformations(int contextualId,
                                             EntityLook look,
                                             EntityDispositionInformations disposition,
                                             bool keyRingBonus,
                                             bool hasHardcoreDrop,
                                             bool hasAVARewardToken,
                                             GroupMonsterStaticInformations staticInfos,
                                             double creationDate,
                                             uint ageBonus,
                                             sbyte lootShare,
                                             sbyte alignmentSide)
     : base(contextualId, look, disposition)
 {
     this.keyRingBonus      = keyRingBonus;
     this.hasHardcoreDrop   = hasHardcoreDrop;
     this.hasAVARewardToken = hasAVARewardToken;
     this.staticInfos       = staticInfos;
     this.creationDate      = creationDate;
     this.ageBonusRate      = ageBonus;
     this.lootShare         = lootShare;
     this.alignmentSide     = alignmentSide;
 }