refactor(Core/Event): Load event vendors seperatly (#20906)

This commit is contained in:
Exitare
2024-12-22 00:44:50 -08:00
committed by GitHub
parent 7714ca31a2
commit b4d04b1af1
6 changed files with 103 additions and 63 deletions

View File

@@ -121,6 +121,8 @@ public:
void StopEvent(uint16 event_id, bool overwrite = false);
void HandleQuestComplete(uint32 quest_id); // called on world event type quest completions
uint32 GetNPCFlag(Creature* cr);
// Load the game event npc vendor table from the DB
void LoadEventVendors();
[[nodiscard]] uint32 GetHolidayEventId(uint32 holidayId) const;
private:
void SendWorldStateUpdate(Player* player, uint16 event_id);