Implemented OnAfterUpdateEncounterState hook

This commit is contained in:
Yehonal
2018-03-20 12:09:20 +00:00
parent 5775da199a
commit 9abaf38612
3 changed files with 11 additions and 0 deletions

View File

@@ -1015,6 +1015,9 @@ class GlobalScript : public ScriptObject
// On Before arena points distribution
virtual void OnBeforeUpdateArenaPoints(ArenaTeam* /*at*/, std::map<uint32, uint32> & /*ap*/) { }
// Called when a dungeon encounter is updated.
virtual void OnAfterUpdateEncounterState(Map* /*map*/, EncounterCreditType /*type*/, uint32 /*creditEntry*/, Unit* /*source*/, Difficulty /*difficulty_fixed*/, DungeonEncounterList const* /*encounters*/, uint32 /*dungeonCompleted*/) { }
};
// this class can be used to be extended by Modules
@@ -1293,6 +1296,7 @@ class ScriptMgr
void OnItemRoll(Player const* player, LootStoreItem const* LootStoreItem, float &chance, Loot& loot, LootStore const& store);
void OnInitializeLockedDungeons(Player* player, uint8& level, uint32& lockData);
void OnAfterInitializeLockedDungeons(Player* player);
void OnAfterUpdateEncounterState(Map* map, EncounterCreditType type, uint32 creditEntry, Unit* source, Difficulty difficulty_fixed, DungeonEncounterList const* encounters, uint32 dungeonCompleted);
public: /* Scheduled scripts */