aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Quests/QuestDef.h
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2019-08-04 12:22:57 +0200
committerShauren <shauren.trinity@gmail.com>2021-12-18 15:28:45 +0100
commit51fbda4223442635a35d3225c0797d0151ea7051 (patch)
tree58c157637d44c568f7d720dddbce2c28c7ee9427 /src/server/game/Quests/QuestDef.h
parent6d5086da1747816e1a4e8518e16ab1923de22e1a (diff)
Core/Pooling: Quest pooling rewrite: (PR#23627)
- Split quest pooling from PoolMgr (into QuestPoolMgr) - Proper saving/restoring on server restart - No more hacking into sObjectMgr to insert/remove available quests (cherry picked from commit a5e73e41c0e813e674bb0a644e0052052435494e)
Diffstat (limited to 'src/server/game/Quests/QuestDef.h')
-rw-r--r--src/server/game/Quests/QuestDef.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Quests/QuestDef.h b/src/server/game/Quests/QuestDef.h
index 8bf1db4407e..87d562cdd67 100644
--- a/src/server/game/Quests/QuestDef.h
+++ b/src/server/game/Quests/QuestDef.h
@@ -508,6 +508,9 @@ class TC_GAME_API Quest
// Possibly deprecated flag
bool IsUnavailable() const { return HasFlag(QUEST_FLAGS_UNAVAILABLE); }
+ // whether the quest is globally enabled (spawned by pool, game event active etc.)
+ static bool IsTakingQuestEnabled(uint32 questId);
+
// table data accessors:
uint32 GetQuestId() const { return _id; }
uint32 GetQuestType() const { return _type; }