Exemplo n.º 1
0
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            byte flag1 = reader.ReadByte();

            keyRingBonus      = BooleanByteWrapper.GetFlag(flag1, 0);
            hasHardcoreDrop   = BooleanByteWrapper.GetFlag(flag1, 1);
            hasAVARewardToken = BooleanByteWrapper.GetFlag(flag1, 2);
            staticInfos       = Types.ProtocolTypeManager.GetInstance <Types.GroupMonsterStaticInformations>(reader.ReadShort());
            staticInfos.Deserialize(reader);
            creationTime = reader.ReadDouble();
            if (creationTime < 0 || creationTime > 9007199254740990)
            {
                throw new Exception("Forbidden value on creationTime = " + creationTime + ", it doesn't respect the following condition : creationTime < 0 || creationTime > 9007199254740990");
            }
            ageBonusRate = reader.ReadInt();
            if (ageBonusRate < 0)
            {
                throw new Exception("Forbidden value on ageBonusRate = " + ageBonusRate + ", it doesn't respect the following condition : ageBonusRate < 0");
            }
            lootShare = reader.ReadSByte();
            if (lootShare < -1 || lootShare > 8)
            {
                throw new Exception("Forbidden value on lootShare = " + lootShare + ", it doesn't respect the following condition : lootShare < -1 || lootShare > 8");
            }
            alignmentSide = reader.ReadSByte();
        }
 public GameRolePlayGroupMonsterInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, Types.GroupMonsterStaticInformations staticInfos, short ageBonus, sbyte lootShare, sbyte alignmentSide)
     : base(contextualId, look, disposition)
 {
     this.staticInfos = staticInfos;
     this.ageBonus = ageBonus;
     this.lootShare = lootShare;
     this.alignmentSide = alignmentSide;
 }
 public GameRolePlayGroupMonsterInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, Types.GroupMonsterStaticInformations staticInfos, short ageBonus, sbyte lootShare, sbyte alignmentSide)
     : base(contextualId, look, disposition)
 {
     this.staticInfos   = staticInfos;
     this.ageBonus      = ageBonus;
     this.lootShare     = lootShare;
     this.alignmentSide = alignmentSide;
 }
 public GameRolePlayGroupMonsterInformations(double contextualId, Types.EntityDispositionInformations disposition, Types.EntityLook look, bool keyRingBonus, bool hasHardcoreDrop, bool hasAVARewardToken, Types.GroupMonsterStaticInformations staticInfos, sbyte lootShare, sbyte alignmentSide)
     : base(contextualId, disposition, look)
 {
     this.keyRingBonus      = keyRingBonus;
     this.hasHardcoreDrop   = hasHardcoreDrop;
     this.hasAVARewardToken = hasAVARewardToken;
     this.staticInfos       = staticInfos;
     this.lootShare         = lootShare;
     this.alignmentSide     = alignmentSide;
 }
 public GameRolePlayGroupMonsterInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, bool keyRingBonus, bool hasHardcoreDrop, bool hasAVARewardToken, Types.GroupMonsterStaticInformations staticInfos, short ageBonus, sbyte lootShare, sbyte alignmentSide)
     : base(contextualId, look, disposition)
 {
     this.keyRingBonus = keyRingBonus;
     this.hasHardcoreDrop = hasHardcoreDrop;
     this.hasAVARewardToken = hasAVARewardToken;
     this.staticInfos = staticInfos;
     this.ageBonus = ageBonus;
     this.lootShare = lootShare;
     this.alignmentSide = alignmentSide;
 }
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            byte flag1 = reader.ReadByte();

            keyRingBonus      = BooleanByteWrapper.GetFlag(flag1, 0);
            hasHardcoreDrop   = BooleanByteWrapper.GetFlag(flag1, 1);
            hasAVARewardToken = BooleanByteWrapper.GetFlag(flag1, 2);
            staticInfos       = ProtocolTypeManager.GetInstance <Types.GroupMonsterStaticInformations>(reader.ReadUShort());
            staticInfos.Deserialize(reader);
            lootShare     = reader.ReadSbyte();
            alignmentSide = reader.ReadSbyte();
        }
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     staticInfos = Types.ProtocolTypeManager.GetInstance<Types.GroupMonsterStaticInformations>(reader.ReadShort());
     staticInfos.Deserialize(reader);
     ageBonus = reader.ReadShort();
     if (ageBonus < -1 || ageBonus > 1000)
         throw new Exception("Forbidden value on ageBonus = " + ageBonus + ", it doesn't respect the following condition : ageBonus < -1 || ageBonus > 1000");
     lootShare = reader.ReadSByte();
     if (lootShare < -1 || lootShare > 8)
         throw new Exception("Forbidden value on lootShare = " + lootShare + ", it doesn't respect the following condition : lootShare < -1 || lootShare > 8");
     alignmentSide = reader.ReadSByte();
     keyRingBonus = reader.ReadBoolean();
 }
 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     byte flag1 = reader.ReadByte();
     keyRingBonus = BooleanByteWrapper.GetFlag(flag1, 0);
     hasHardcoreDrop = BooleanByteWrapper.GetFlag(flag1, 1);
     hasAVARewardToken = BooleanByteWrapper.GetFlag(flag1, 2);
     staticInfos = Types.ProtocolTypeManager.GetInstance<Types.GroupMonsterStaticInformations>(reader.ReadShort());
     staticInfos.Deserialize(reader);
     ageBonus = reader.ReadShort();
     if ((ageBonus < -1) || (ageBonus > 1000))
         throw new Exception("Forbidden value on ageBonus = " + ageBonus + ", it doesn't respect the following condition : (ageBonus < -1) || (ageBonus > 1000)");
     lootShare = reader.ReadSByte();
     if ((lootShare < -1) || (lootShare > 8))
         throw new Exception("Forbidden value on lootShare = " + lootShare + ", it doesn't respect the following condition : (lootShare < -1) || (lootShare > 8)");
     alignmentSide = reader.ReadSByte();
 }
 public override void Deserialize(BigEndianReader reader)
 {
     base.Deserialize(reader);
     byte b = reader.ReadByte();
     this.keyRingBonus = BooleanByteWrapper.GetFlag(b, 0);
     this.hasHardcoreDrop = BooleanByteWrapper.GetFlag(b, 1);
     this.hasAVARewardToken = BooleanByteWrapper.GetFlag(b, 2);
     short s = reader.ReadShort();
     staticInfos = Types.ProtocolTypeManager.GetInstance<Types.GroupMonsterStaticInformations>(s);
     staticInfos.Deserialize(reader);
     ageBonus = reader.ReadShort();
     if (ageBonus < -1 || ageBonus > 1000)
         throw new Exception("Forbidden value on ageBonus = " + ageBonus + ", it doesn't respect the following condition : ageBonus < -1 || ageBonus > 1000");
     lootShare = reader.ReadSByte();
     if (lootShare < -1 || lootShare > 8)
         throw new Exception("Forbidden value on lootShare = " + lootShare + ", it doesn't respect the following condition : lootShare < -1 || lootShare > 8");
     alignmentSide = reader.ReadSByte();
 }
 public override void Deserialize(IDataReader reader)
 {
     base.Deserialize(reader);
     staticInfos = Types.ProtocolTypeManager.GetInstance <Types.GroupMonsterStaticInformations>(reader.ReadShort());
     staticInfos.Deserialize(reader);
     ageBonus = reader.ReadShort();
     if (ageBonus < -1 || ageBonus > 1000)
     {
         throw new Exception("Forbidden value on ageBonus = " + ageBonus + ", it doesn't respect the following condition : ageBonus < -1 || ageBonus > 1000");
     }
     lootShare = reader.ReadSByte();
     if (lootShare < -1 || lootShare > 8)
     {
         throw new Exception("Forbidden value on lootShare = " + lootShare + ", it doesn't respect the following condition : lootShare < -1 || lootShare > 8");
     }
     alignmentSide = reader.ReadSByte();
     keyRingBonus  = reader.ReadBoolean();
 }
        public override void Deserialize(IDataReader reader)
        {
            base.Deserialize(reader);
            nbWaves = reader.ReadSByte();
            if (nbWaves < 0)
            {
                throw new Exception("Forbidden value on nbWaves = " + nbWaves + ", it doesn't respect the following condition : nbWaves < 0");
            }
            var limit         = reader.ReadUShort();
            var alternatives_ = new Types.GroupMonsterStaticInformations[limit];

            for (int i = 0; i < limit; i++)
            {
                alternatives_[i] = Types.ProtocolTypeManager.GetInstance <Types.GroupMonsterStaticInformations>(reader.ReadShort());
                alternatives_[i].Deserialize(reader);
            }
            alternatives = alternatives_;
        }
Exemplo n.º 12
0
        public override void Deserialize(ICustomDataInput reader)
        {
            base.Deserialize(reader);
            byte flag1 = reader.ReadByte();

            keyRingBonus      = BooleanByteWrapper.GetFlag(flag1, 0);
            hasHardcoreDrop   = BooleanByteWrapper.GetFlag(flag1, 1);
            hasAVARewardToken = BooleanByteWrapper.GetFlag(flag1, 2);
            staticInfos       = Types.ProtocolTypeManager.GetInstance <Types.GroupMonsterStaticInformations>(reader.ReadShort());
            staticInfos.Deserialize(reader);
            creationDate = reader.ReadDouble();
            ageBonusRate = reader.ReadUInt();
            lootShare    = reader.ReadSByte();
            if ((lootShare < -1) || (lootShare > 8))
            {
                throw new Exception("Forbidden value on lootShare = " + lootShare + ", it doesn't respect the following condition : (lootShare < -1) || (lootShare > 8)");
            }
            alignmentSide = reader.ReadSByte();
        }
Exemplo n.º 13
0
        public override void Deserialize(BigEndianReader reader)
        {
            base.Deserialize(reader);
            byte flag1 = reader.ReadByte();

            keyRingBonus      = BooleanByteWrapper.GetFlag(flag1, 0);
            hasHardcoreDrop   = BooleanByteWrapper.GetFlag(flag1, 1);
            hasAVARewardToken = BooleanByteWrapper.GetFlag(flag1, 2);
            staticInfos       = Types.ProtocolTypeManager.GetInstance <Types.GroupMonsterStaticInformations>(reader.ReadShort());
            staticInfos.Deserialize(reader);
            ageBonus = reader.ReadShort();
            if (ageBonus < -1 || ageBonus > 1000)
            {
                throw new Exception("Forbidden value on ageBonus = " + ageBonus + ", it doesn't respect the following condition : ageBonus < -1 || ageBonus > 1000");
            }
            lootShare = reader.ReadSByte();
            if (lootShare < -1 || lootShare > 8)
            {
                throw new Exception("Forbidden value on lootShare = " + lootShare + ", it doesn't respect the following condition : lootShare < -1 || lootShare > 8");
            }
            alignmentSide = reader.ReadSByte();
        }
 public GameRolePlayGroupMonsterWaveInformations(double contextualId, Types.EntityDispositionInformations disposition, Types.EntityLook look, bool keyRingBonus, bool hasHardcoreDrop, bool hasAVARewardToken, Types.GroupMonsterStaticInformations staticInfos, sbyte lootShare, sbyte alignmentSide, sbyte nbWaves, Types.GroupMonsterStaticInformations[] alternatives)
     : base(contextualId, disposition, look, keyRingBonus, hasHardcoreDrop, hasAVARewardToken, staticInfos, lootShare, alignmentSide)
 {
     this.nbWaves      = nbWaves;
     this.alternatives = alternatives;
 }
Exemplo n.º 15
0
 public GameRolePlayGroupMonsterWaveInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, Types.GroupMonsterStaticInformations staticInfos, short ageBonus, sbyte lootShare, sbyte alignmentSide, sbyte nbWaves, Types.GroupMonsterStaticInformations[] alternatives)
     : base(contextualId, look, disposition, staticInfos, ageBonus, lootShare, alignmentSide)
 {
     this.nbWaves      = nbWaves;
     this.alternatives = alternatives;
 }
 public GameRolePlayGroupMonsterWaveInformations(int contextualId, Types.EntityLook look, Types.EntityDispositionInformations disposition, bool keyRingBonus, bool hasHardcoreDrop, bool hasAVARewardToken, Types.GroupMonsterStaticInformations staticInfos, double creationDate, uint ageBonus, sbyte lootShare, sbyte alignmentSide, sbyte nbWaves, IEnumerable <Types.GroupMonsterStaticInformations> alternatives)
     : base(contextualId, look, disposition, keyRingBonus, hasHardcoreDrop, hasAVARewardToken, staticInfos, creationDate, ageBonus, lootShare, alignmentSide)
 {
     this.nbWaves      = nbWaves;
     this.alternatives = alternatives;
 }