diff options
| author | Shauren <shauren.trinity@gmail.com> | 2022-01-02 19:14:32 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2022-01-02 19:14:32 +0100 |
| commit | d30e4a20e52a5025c59bfc746570ff7ef06af6f4 (patch) | |
| tree | cef1656221df6cf8ebf8ef561f265a840b13e9b5 /src/server/game/DataStores | |
| parent | 2d07cf9570c87f01d216eb4377c4b730754d1264 (diff) | |
Core/Misc: Define and use ChrRacesFlag and CreatureModelDataFlags (ref 772f506a3b426e27ee64b0506aed06219c8d7747)
Diffstat (limited to 'src/server/game/DataStores')
| -rw-r--r-- | src/server/game/DataStores/DB2Structure.h | 2 | ||||
| -rw-r--r-- | src/server/game/DataStores/DBCEnums.h | 50 |
2 files changed, 51 insertions, 1 deletions
diff --git a/src/server/game/DataStores/DB2Structure.h b/src/server/game/DataStores/DB2Structure.h index b4d68c2930d..7b73f6a0d50 100644 --- a/src/server/game/DataStores/DB2Structure.h +++ b/src/server/game/DataStores/DB2Structure.h @@ -1004,6 +1004,8 @@ struct CreatureModelDataEntry int8 Unknown820_1; // scale related float Unknown820_2; // scale related float Unknown820_3[2]; // scale related + + EnumFlag<CreatureModelDataFlags> GetFlags() const { return static_cast<CreatureModelDataFlags>(Flags); } }; struct CreatureTypeEntry diff --git a/src/server/game/DataStores/DBCEnums.h b/src/server/game/DataStores/DBCEnums.h index 21073d00bd9..a799e882e58 100644 --- a/src/server/game/DataStores/DBCEnums.h +++ b/src/server/game/DataStores/DBCEnums.h @@ -231,7 +231,31 @@ DEFINE_ENUM_FLAG(BattlemasterListFlags); enum class ChrRacesFlag : int32 { - AlliedRace = 0x80000 + NPCOnly = 0x000001, + DoNotComponentFeet = 0x000002, + CanMount = 0x000004, + HasBald = 0x000008, + BindToStartingArea = 0x000010, + AlternateForm = 0x000020, + CanMountSelf = 0x000040, + ForceToHDModelIfAvailable = 0x000080, + ExaltedWithAllVendors = 0x000100, + NotSelectable = 0x000200, + ReputationBonus = 0x000400, + UseLoincloth = 0x000800, + RestBonus = 0x001000, + NoStartKits = 0x002000, + NoStartingWeapon = 0x004000, + DontRedeemAccountLicenses = 0x008000, + SkinVariationIsHairColor = 0x010000, + UsePandarenRingForComponentingTexture = 0x020000, + IgnoreForAssetManifestComponentInfoParsing = 0x040000, + IsAlliedRace = 0x080000, + VoidVendorDiscount = 0x100000, + DAMMComponentNoMaleGeneration = 0x200000, + DAMMComponentNoFemaleGeneration = 0x400000, + NoAssociatedFactionReputationInRaceChange = 0x800000, + InternalOnly = 0x100000, }; DEFINE_ENUM_FLAG(ChrRacesFlag); @@ -271,6 +295,30 @@ enum class CorruptionEffectsFlag DEFINE_ENUM_FLAG(CorruptionEffectsFlag); +enum class CreatureModelDataFlags : uint32 +{ + NoFootprintParticles = 0x00001, + NoBreathParticles = 0x00002, + IsPlayerModel = 0x00004, + NoAttachedWeapons = 0x00010, + NoFootprintTrailTextures = 0x00020, + DisableHighlight = 0x00040, + CanMountWhileTransformedAsThis = 0x00080, + DisableScaleInterpolation = 0x00100, + ForceProjectedTex = 0x00200, + CanJumpInPlaceAsMount = 0x00400, + AICannotUseWalkBackwardsAnim = 0x00800, + IgnoreSpineLowForSplitBody = 0x01000, + IgnoreHeadForSplitBody = 0x02000, + IgnoreSpineLowForSplitBodyWhenFlying = 0x04000, + IgnoreHeadForSplitBodyWhenFlying = 0x08000, + UseWheelAnimationOnUnitWheelBones = 0x10000, + IsHDModel = 0x20000, + SuppressEmittersOnLowSettings = 0x40000 +}; + +DEFINE_ENUM_FLAG(CreatureModelDataFlags); + enum class CriteriaFailEvent : uint8 { None = 0, |
