Core/Misc: Some refactoring
Port From (https://github.com/TrinityCore/TrinityCore/commit/94a79bac7a06aa0f931e9d651928de7eea0a8b5c)
This commit is contained in:
@@ -205,16 +205,20 @@ namespace Framework.Constants
|
||||
{
|
||||
Creature = 0,
|
||||
GameObject = 1,
|
||||
AreaTrigger = 2,
|
||||
|
||||
Max
|
||||
NumSpawnTypesWithData,
|
||||
NumSpawnTypes
|
||||
}
|
||||
|
||||
public enum SpawnObjectTypeMask
|
||||
{
|
||||
Creature = (1 << SpawnObjectType.Creature),
|
||||
GameObject = (1 << SpawnObjectType.GameObject),
|
||||
AreaTrigger = (1 << SpawnObjectType.AreaTrigger),
|
||||
|
||||
All = (1 << SpawnObjectType.Max) - 1
|
||||
WithData = (1 << SpawnObjectType.NumSpawnTypesWithData) - 1,
|
||||
All = (1 << SpawnObjectType.NumSpawnTypes) - 1
|
||||
}
|
||||
|
||||
[Flags]
|
||||
|
||||
@@ -866,25 +866,6 @@ namespace Framework.Constants
|
||||
DisplayMythic = 0x80 // Controls icon displayed on minimap when inside the instance
|
||||
}
|
||||
|
||||
public enum SpawnMask
|
||||
{
|
||||
Continent = (1 << Difficulty.None), // Any Maps Without Spawn Modes
|
||||
|
||||
DungeonNormal = (1 << Difficulty.Normal),
|
||||
DungeonHeroic = (1 << Difficulty.Heroic),
|
||||
DungeonAll = (DungeonNormal | DungeonHeroic),
|
||||
|
||||
Raid10Normal = (1 << Difficulty.Raid10N),
|
||||
Raid25Normal = (1 << Difficulty.Raid25N),
|
||||
RaidNormalAll = (Raid10Normal | Raid25Normal),
|
||||
|
||||
Raid10Heroic = (1 << Difficulty.Raid10HC),
|
||||
Raid25Heroic = (1 << Difficulty.Raid25HC),
|
||||
RaidHeroicAll = (Raid10Heroic | Raid25Heroic),
|
||||
|
||||
RaidAll = (RaidNormalAll | RaidHeroicAll)
|
||||
}
|
||||
|
||||
public enum MapFlags
|
||||
{
|
||||
CanToggleDifficulty = 0x0100,
|
||||
|
||||
Reference in New Issue
Block a user