Dynamic Creature/Go spawning
Port From (https://github.com/TrinityCore/TrinityCore/commit/03b125e6d1947258316c931499746696a95aded2)
This commit is contained in:
@@ -20,6 +20,8 @@ namespace Framework.Constants
|
||||
{
|
||||
public class MapConst
|
||||
{
|
||||
public const uint InvalidZone = 0xFFFFFFFF;
|
||||
|
||||
//Grids
|
||||
public const int MaxGrids = 64;
|
||||
public const float SizeofGrids = 533.33333f;
|
||||
@@ -200,4 +202,33 @@ namespace Framework.Constants
|
||||
|
||||
All = Vmap | Gobject
|
||||
}
|
||||
|
||||
public enum SpawnObjectType
|
||||
{
|
||||
Creature = 0,
|
||||
GameObject = 1,
|
||||
|
||||
Max
|
||||
}
|
||||
|
||||
public enum SpawnObjectTypeMask
|
||||
{
|
||||
Creature = (1 << SpawnObjectType.Creature),
|
||||
GameObject = (1 << SpawnObjectType.GameObject),
|
||||
|
||||
All = (1 << SpawnObjectType.Max) - 1
|
||||
}
|
||||
|
||||
[Flags]
|
||||
public enum SpawnGroupFlags
|
||||
{
|
||||
None = 0x00,
|
||||
System = 0x01,
|
||||
CompatibilityMode = 0x02,
|
||||
ManualSpawn = 0x04,
|
||||
DynamicSpawnRate = 0x08,
|
||||
EscortQuestNpc = 0x10,
|
||||
|
||||
All = (System | CompatibilityMode | ManualSpawn | DynamicSpawnRate | EscortQuestNpc)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user