Scripts/InstanceScript: Implement database framework for managing spawn groups based on boss state.

Port From (https://github.com/TrinityCore/TrinityCore/commit/608c9aaabfcdbaf09edd11cdf268c243b3e69478)
This commit is contained in:
hondacrx
2020-08-24 11:13:45 -04:00
parent cd92a34082
commit 24a9e5e1d8
6 changed files with 172 additions and 31 deletions
+10 -1
View File
@@ -113,7 +113,7 @@ namespace Framework.Constants
AreaTrigger = 0x20,
Conversation = 0x40,
All = 0x7F,
//GameObjects, Creatures(except pets), DynamicObject, Corpse(Bones), AreaTrigger
AllGrid = GameObject | Creature | DynamicObject | Corpse | AreaTrigger | Conversation,
@@ -231,4 +231,13 @@ namespace Framework.Constants
All = (System | CompatibilityMode | ManualSpawn | DynamicSpawnRate | EscortQuestNpc)
}
[Flags]
public enum InstanceSpawnGroupFlags
{
ActivateSpawn = 0x01,
BlockSpawn = 0x02,
All = (ActivateSpawn | BlockSpawn)
}
}