Esempio n. 1
0
 public FactionEntry(int factionId, int reputationIndex, [NotNull] ReputationRate rate, int parentFactionId, int parentFactionSpillInMod, int parentFactionSpillOutMod, int parentFactionSpillInMaxRank, int parentFactionSpillOutMaxRank, [NotNull] LocalizedStringDBC <TStringType> name, [NotNull] LocalizedStringDBC <TStringType> description)
 {
     FactionId                    = factionId;
     ReputationIndex              = reputationIndex;
     Rate                         = rate ?? throw new ArgumentNullException(nameof(rate));
     ParentFactionId              = parentFactionId;
     ParentFactionSpillInMod      = parentFactionSpillInMod;
     ParentFactionSpillOutMod     = parentFactionSpillOutMod;
     ParentFactionSpillInMaxRank  = parentFactionSpillInMaxRank;
     ParentFactionSpillOutMaxRank = parentFactionSpillOutMaxRank;
     Name                         = name ?? throw new ArgumentNullException(nameof(name));
     Description                  = description ?? throw new ArgumentNullException(nameof(description));
 }
Esempio n. 2
0
        // 239      3.3.0

        /// <inheritdoc />
        public SpellEntry(int spellId, uint category, uint dispel, SpellMechanic mechanic, SpellAtribute attributes, SpellAtributeEx attributesEx, SpellAtributeEx2 attributesEx2, SpellAtributeEx3 attributesEx3, SpellAtributeEx4 attributesEx4, SpellAtributeEx5 attributesEx5, SpellAtributeEx6 attributesEx6, SpellAtributeEx7 attributesEx7, ulong stances, ulong stancesNot, uint targets, CreatureTypeMask targetCreatureType, uint requiresSpellFocus, uint facingCasterFlags, AuraState casterAuraState, AuraState targetAuraState, AuraState casterAuraStateNot, AuraState targetAuraStateNot, uint casterAuraSpell, uint targetAuraSpell, uint excludeCasterAuraSpell, uint excludeTargetAuraSpell, uint castingTimeIndex, uint recoveryTime, uint categoryRecoveryTime, SpellInteruptFlags interruptFlags, SpellAuraInterruptFlags auraInterruptFlags, SpellChannelInterruptFlags channelInterruptFlags, ProcFlags procFlags, uint procChance, uint procCharges, uint maxLevel, uint baseLevel, uint spellLevel, uint durationIndex, SpellCostPower powerType, uint manaCost, uint manaCostPerlevel, uint manaPerSecond, uint manaPerSecondPerLevel, uint rangeIndex, float speed, uint modalNextSpell, uint stackAmount, RequiredReagentData reagentsRequired, ItemClassType equippedItemClass, int equippedItemSubClassMask, InventoryTypeMask equippedItemInventoryTypeMask, SpellEffectData spellEffectInformation, SpellVisualData spellVisual, uint spellIconId, uint activeIconId, uint spellPriority, LocalizedStringDBC <TStringType> spellName, LocalizedStringDBC <TStringType> rank, LocalizedStringDBC <TStringType> description, LocalizedStringDBC <TStringType> toolTip, uint manaCostPercentage, uint startRecoveryCategory, uint startRecoveryTime, uint maxTargetLevel, SpellFamilyName spellFamilyName, Flags96 <uint> spellFamilyFlags, uint maxAffectedTargets, SpellDamageClassType dmgClass, SpellPreventionType preventionType, uint stanceBarOrder, SpellEffectDataChunk <float> dmgMultiplier, uint minFactionId, uint minReputation, uint requiredAuraVision, SpellTotemDataChunk <uint> totemCategory, int areaGroupId, SpellSchoolMask schoolMask, uint runeCostId, uint spellMissileId, uint powerDisplayId, SpellEffectDataChunk <float> damageCoeficient, uint spellDescriptionVariableId, uint spellDifficultyId)
        {
            SpellId                = spellId;
            Category               = category;
            Dispel                 = dispel;
            Mechanic               = mechanic;
            Attributes             = attributes;
            AttributesEx           = attributesEx;
            AttributesEx2          = attributesEx2;
            AttributesEx3          = attributesEx3;
            AttributesEx4          = attributesEx4;
            AttributesEx5          = attributesEx5;
            AttributesEx6          = attributesEx6;
            AttributesEx7          = attributesEx7;
            Stances                = stances;
            StancesNot             = stancesNot;
            Targets                = targets;
            TargetCreatureType     = targetCreatureType;
            RequiresSpellFocus     = requiresSpellFocus;
            FacingCasterFlags      = facingCasterFlags;
            CasterAuraState        = casterAuraState;
            TargetAuraState        = targetAuraState;
            CasterAuraStateNot     = casterAuraStateNot;
            TargetAuraStateNot     = targetAuraStateNot;
            CasterAuraSpell        = casterAuraSpell;
            TargetAuraSpell        = targetAuraSpell;
            ExcludeCasterAuraSpell = excludeCasterAuraSpell;
            ExcludeTargetAuraSpell = excludeTargetAuraSpell;
            CastingTimeIndex       = castingTimeIndex;
            RecoveryTime           = recoveryTime;
            CategoryRecoveryTime   = categoryRecoveryTime;
            InterruptFlags         = interruptFlags;
            AuraInterruptFlags     = auraInterruptFlags;
            ChannelInterruptFlags  = channelInterruptFlags;
            ProcFlags              = procFlags;
            ProcChance             = procChance;
            ProcCharges            = procCharges;
            MaxLevel               = maxLevel;
            BaseLevel              = baseLevel;
            SpellLevel             = spellLevel;
            DurationIndex          = durationIndex;
            PowerType              = powerType;
            ManaCost               = manaCost;
            ManaCostPerlevel       = manaCostPerlevel;
            ManaPerSecond          = manaPerSecond;
            ManaPerSecondPerLevel  = manaPerSecondPerLevel;
            RangeIndex             = rangeIndex;
            Speed                         = speed;
            ModalNextSpell                = modalNextSpell;
            StackAmount                   = stackAmount;
            ReagentsRequired              = reagentsRequired;
            EquippedItemClass             = equippedItemClass;
            EquippedItemSubClassMask      = equippedItemSubClassMask;
            EquippedItemInventoryTypeMask = equippedItemInventoryTypeMask;
            SpellEffectInformation        = spellEffectInformation;
            SpellVisual                   = spellVisual;
            SpellIconID                   = spellIconId;
            ActiveIconID                  = activeIconId;
            SpellPriority                 = spellPriority;
            SpellName                     = spellName;
            Rank                       = rank;
            Description                = description;
            ToolTip                    = toolTip;
            ManaCostPercentage         = manaCostPercentage;
            StartRecoveryCategory      = startRecoveryCategory;
            StartRecoveryTime          = startRecoveryTime;
            MaxTargetLevel             = maxTargetLevel;
            SpellFamilyName            = spellFamilyName;
            SpellFamilyFlags           = spellFamilyFlags;
            MaxAffectedTargets         = maxAffectedTargets;
            DmgClass                   = dmgClass;
            PreventionType             = preventionType;
            StanceBarOrder             = stanceBarOrder;
            DmgMultiplier              = dmgMultiplier;
            MinFactionId               = minFactionId;
            MinReputation              = minReputation;
            RequiredAuraVision         = requiredAuraVision;
            TotemCategory              = totemCategory;
            AreaGroupId                = areaGroupId;
            SchoolMask                 = schoolMask;
            RuneCostID                 = runeCostId;
            SpellMissileID             = spellMissileId;
            PowerDisplayId             = powerDisplayId;
            DamageCoeficient           = damageCoeficient;
            SpellDescriptionVariableID = spellDescriptionVariableId;
            SpellDifficultyId          = spellDifficultyId;
        }
Esempio n. 3
0
        public ChrClassesEntry(int classId, int unk1, SpellCostPower displayPower, int petNameToken, [NotNull] LocalizedStringDBC <TStringType> name, [NotNull] LocalizedStringDBC <TStringType> femaleName, [NotNull] LocalizedStringDBC <TStringType> maleName, [NotNull] TStringType fileName, SpellFamilyName spellClassSet, CharacterClassEquipmentFlags flags, int cinematicSequenceId, int requiredExpansion)
        {
            if (classId <= 0)
            {
                throw new ArgumentOutOfRangeException(nameof(classId));
            }

            ClassId             = classId;
            Unk1                = unk1;
            DisplayPower        = displayPower;
            PetNameToken        = petNameToken;
            Name                = name ?? throw new ArgumentNullException(nameof(name));
            FemaleName          = femaleName ?? throw new ArgumentNullException(nameof(femaleName));
            MaleName            = maleName ?? throw new ArgumentNullException(nameof(maleName));
            FileName            = fileName ?? throw new ArgumentNullException(nameof(fileName));
            SpellClassSet       = spellClassSet;
            Flags               = flags;
            CinematicSequenceId = cinematicSequenceId;
            RequiredExpansion   = requiredExpansion;
        }
        public SkillLineEntry(int skillLineId, int categoryId, int skillCostId, [NotNull] LocalizedStringDBC <TStringType> displayName, [NotNull] LocalizedStringDBC <TStringType> description, int spellIconId, [NotNull] LocalizedStringDBC <TStringType> alternativeVerb, bool canLink)
        {
            if (skillLineId <= 0)
            {
                throw new ArgumentOutOfRangeException(nameof(skillLineId));
            }
            if (categoryId <= 0)
            {
                throw new ArgumentOutOfRangeException(nameof(categoryId));
            }

            SkillLineId     = skillLineId;
            CategoryId      = categoryId;
            SkillCostId     = skillCostId;
            DisplayName     = displayName ?? throw new ArgumentNullException(nameof(displayName));
            Description     = description ?? throw new ArgumentNullException(nameof(description));
            SpellIconId     = spellIconId;
            AlternativeVerb = alternativeVerb ?? throw new ArgumentNullException(nameof(alternativeVerb));
            CanLink         = canLink ? 1 : 0;
        }
Esempio n. 5
0
 /// <inheritdoc />
 public SpellRangeEntry(uint spellRangeId, float minRange, float minRangeFriendly, float maxRange, float maxRangeFriendly, uint field5, LocalizedStringDBC <TStringType> description1, LocalizedStringDBC <TStringType> description2)
 {
     SpellRangeId     = spellRangeId;
     MinRange         = minRange;
     MinRangeFriendly = minRangeFriendly;
     MaxRange         = maxRange;
     MaxRangeFriendly = maxRangeFriendly;
     Field5           = field5;
     Description1     = description1;
     Description2     = description2;
 }
Esempio n. 6
0
 public SpellItemEnchantmentEntry(int enchantmentId, int charges, [NotNull] ItemEnchantmentSpellCollection effects, [NotNull] LocalizedStringDBC <TStringType> description, int itemVisual, EnchantmentSlotMask flags, int gemItemId, int enchantmentConditionId, int requiredSkillId, int requiredSkillValue, int requiredLevel)
 {
     EnchantmentId          = enchantmentId;
     Charges                = charges;
     Effects                = effects ?? throw new ArgumentNullException(nameof(effects));
     Description            = description ?? throw new ArgumentNullException(nameof(description));
     ItemVisual             = itemVisual;
     Flags                  = flags;
     GemItemId              = gemItemId;
     EnchantmentConditionId = enchantmentConditionId;
     RequiredSkillId        = requiredSkillId;
     RequiredSkillValue     = requiredSkillValue;
     RequiredLevel          = requiredLevel;
 }
Esempio n. 7
0
        public FactionGroupEntry(int factionGroupId, [NotNull] TStringType internalName, [NotNull] LocalizedStringDBC <TStringType> name)
        {
            if (factionGroupId <= 0)
            {
                throw new ArgumentOutOfRangeException(nameof(factionGroupId));
            }

            FactionGroupId = factionGroupId;
            InternalName   = internalName ?? throw new ArgumentNullException(nameof(internalName));
            Name           = name ?? throw new ArgumentNullException(nameof(name));
            MaskId         = factionGroupId - 1;
        }
Esempio n. 8
0
        public CharTitlesEntry(int titleId, int conditionId, [NotNull] LocalizedStringDBC <TStringType> maleName, [NotNull] LocalizedStringDBC <TStringType> femaleName, int titleBit)
        {
            if (titleId <= 0)
            {
                throw new ArgumentOutOfRangeException(nameof(titleId));
            }
            if (titleBit <= 0)
            {
                throw new ArgumentOutOfRangeException(nameof(titleBit));
            }

            TitleId     = titleId;
            ConditionId = conditionId;
            MaleName    = maleName ?? throw new ArgumentNullException(nameof(maleName));
            FemaleName  = femaleName ?? throw new ArgumentNullException(nameof(femaleName));
            TitleBit    = titleBit;
        }
Esempio n. 9
0
        public AchievementCriteriaEntry(int achievementCriteriaId, int referredAchievementId, [NotNull] AchievementEntry <TStringType> achievementEntry, AchievementCriteriaTypes type, int assetId, int amount, [NotNull] AchievementCriteriaConditionDefinition start, [NotNull] AchievementCriteriaConditionDefinition fail, [NotNull] LocalizedStringDBC <TStringType> description, AchievementFlags flags, [NotNull] AchievementCriteriaConditionDefinition timed, int time, int uiOrder)
        {
            if (!Enum.IsDefined(typeof(AchievementFlags), flags))
            {
                throw new InvalidEnumArgumentException(nameof(flags), (int)flags, typeof(AchievementFlags));
            }

            AchievementCriteriaId = achievementCriteriaId;
            ReferredAchievementId = referredAchievementId;
            AchievementEntry      = achievementEntry ?? throw new ArgumentNullException(nameof(achievementEntry));
            Type        = type;
            AssetId     = assetId;
            Amount      = amount;
            Start       = start ?? throw new ArgumentNullException(nameof(start));
            Fail        = fail ?? throw new ArgumentNullException(nameof(fail));
            Description = description ?? throw new ArgumentNullException(nameof(description));
            Flags       = flags;
            Timed       = timed ?? throw new ArgumentNullException(nameof(timed));
            Time        = time;
            UIOrder     = uiOrder;
        }
Esempio n. 10
0
 public AchievementEntry(int achievementId, AchievementFaction faction, int mapId, int supersedesId, [NotNull] LocalizedStringDBC <TStringType> title, [NotNull] LocalizedStringDBC <TStringType> description, int categoryId, int points, int uiOrder, AchievementFlags flags, int iconId, [NotNull] LocalizedStringDBC <TStringType> reward, int minimumCriteriaCount, int sharesCriteriaId)
 {
     AchievementId        = achievementId;
     Faction              = faction;
     MapId                = mapId;
     SupersedesId         = supersedesId;
     Title                = title ?? throw new ArgumentNullException(nameof(title));
     Description          = description ?? throw new ArgumentNullException(nameof(description));
     CategoryID           = categoryId;
     Points               = points;
     UIOrder              = uiOrder;
     Flags                = flags;
     IconId               = iconId;
     Reward               = reward ?? throw new ArgumentNullException(nameof(reward));
     MinimumCriteriaCount = minimumCriteriaCount;
     SharesCriteriaId     = sharesCriteriaId;
 }
 public AreaTableEntry(int areaId, int mapId, int parentAreaId, int areaBit, AreaFlags flags, int soundProviderPreference, int soundProviderPreferenceUnderwater, int ambienceId, int zoneMusicId, int introSoundId, int areaExplorationLevel, [NotNull] LocalizedStringDBC <TStringType> areaName, AreaTeams factionTeamMask, [NotNull] Vector4 <int> liquidTypeId, float minimumElevation, float ambientMultiplier, int lightId)
 {
     AreaId                            = areaId;
     MapId                             = mapId;
     ParentAreaId                      = parentAreaId;
     AreaBit                           = areaBit;
     Flags                             = flags;
     SoundProviderPreference           = soundProviderPreference;
     SoundProviderPreferenceUnderwater = soundProviderPreferenceUnderwater;
     AmbienceId                        = ambienceId;
     ZoneMusicId                       = zoneMusicId;
     IntroSoundId                      = introSoundId;
     AreaExplorationLevel              = areaExplorationLevel;
     AreaName                          = areaName ?? throw new ArgumentNullException(nameof(areaName));
     FactionTeamMask                   = factionTeamMask;
     LiquidTypeID                      = liquidTypeId ?? throw new ArgumentNullException(nameof(liquidTypeId));
     MinimumElevation                  = minimumElevation;
     AmbientMultiplier                 = ambientMultiplier;
     LightId                           = lightId;
 }
Esempio n. 12
0
 public MapEntry(int mapId, TStringType directory, MapTypes mapType, AreaFlags flags, bool isPvPMap, LocalizedStringDBC <TStringType> mapName, int areaTableId, LocalizedStringDBC <TStringType> mapDescription0, LocalizedStringDBC <TStringType> mapDescription1, int loadingScreenId, float minimapIconScale, int corpseMapId, Vector2 <int> corpse, int timeOfDayOverride, Expansions expansion, int raidOffset, int maxPlayers)
 {
     MapId             = mapId;
     Directory         = directory;
     MapType           = mapType;
     Flags             = flags;
     PvP               = isPvPMap ? 1 : 0;
     MapName           = mapName;
     AreaTableId       = areaTableId;
     MapDescription0   = mapDescription0;
     MapDescription1   = mapDescription1;
     LoadingScreenId   = loadingScreenId;
     MinimapIconScale  = minimapIconScale;
     CorpseMapId       = corpseMapId;
     Corpse            = corpse;
     TimeOfDayOverride = timeOfDayOverride;
     ExpansionId       = (int)expansion;
     RaidOffset        = raidOffset;
     MaxPlayers        = maxPlayers;
 }