public ItemEnchantmentSpellCollection([NotNull] GenericStaticallySizedArrayChunkThree <ItemEnchantmentType> types, [NotNull] GenericStaticallySizedArrayChunkThree <ItemEnchantmentType> pointsMinimum, [NotNull] GenericStaticallySizedArrayChunkThree <ItemEnchantmentType> pointsMaximum, [NotNull] GenericStaticallySizedArrayChunkThree <int> spellIds)
 {
     Types         = types ?? throw new ArgumentNullException(nameof(types));
     PointsMinimum = pointsMinimum ?? throw new ArgumentNullException(nameof(pointsMinimum));
     PointsMaximum = pointsMaximum ?? throw new ArgumentNullException(nameof(pointsMaximum));
     SpellIds      = spellIds ?? throw new ArgumentNullException(nameof(spellIds));
 }
Пример #2
0
        public ParticleColorEntry(int particleColorId, [NotNull] GenericStaticallySizedArrayChunkThree <int> startColor, [NotNull] GenericStaticallySizedArrayChunkThree <int> midColor, [NotNull] GenericStaticallySizedArrayChunkThree <int> endColor)
        {
            if (particleColorId <= 0)
            {
                throw new ArgumentOutOfRangeException(nameof(particleColorId));
            }

            ParticleColorId = particleColorId;
            StartColor      = startColor ?? throw new ArgumentNullException(nameof(startColor));
            MidColor        = midColor ?? throw new ArgumentNullException(nameof(midColor));
            EndColor        = endColor ?? throw new ArgumentNullException(nameof(endColor));
        }
        public CreatureDisplayInfoEntry(int creatureDisplayInfoId, int modelId, int soundIdOverride, int extraDisplayInformationId, float creatureModelScale, int creatureModelAlpha, [NotNull] GenericStaticallySizedArrayChunkThree <TStringType> textureVariation, [NotNull] TStringType portraitTextureName, int bloodLevelIdOverride, int unitBloodId, int npcSoundsId, int particleId, int creatureGeosetData, int objectEffectPackageId)
        {
            if (creatureDisplayInfoId <= 0)
            {
                throw new ArgumentOutOfRangeException(nameof(creatureDisplayInfoId));
            }
            if (modelId <= 0)
            {
                throw new ArgumentOutOfRangeException(nameof(modelId));
            }

            CreatureDisplayInfoId = creatureDisplayInfoId;
            ModelId                   = modelId;
            SoundIdOverride           = soundIdOverride;
            ExtraDisplayInformationId = extraDisplayInformationId;
            CreatureModelScale        = creatureModelScale;
            CreatureModelAlpha        = creatureModelAlpha;
            TextureVariation          = textureVariation ?? throw new ArgumentNullException(nameof(textureVariation));
            PortraitTextureName       = portraitTextureName ?? throw new ArgumentNullException(nameof(portraitTextureName));
            BloodLevelIdOverride      = bloodLevelIdOverride;
            UnitBloodId               = unitBloodId;
            NpcSoundsId               = npcSoundsId;
            ParticleId                = particleId;
            CreatureGeosetData        = creatureGeosetData;
            ObjectEffectPackageId     = objectEffectPackageId;
        }