feat(Core/DB): Add Hooks On creature/game object save to db (#11246)
* implement OnCreatureSaveToDB and OnGameObjectSaveToDB Hooks * fix Whitespaces in ScriptMgr.h Co-authored-by: Timothée Moos <t1997.m@gmx.net>
This commit is contained in:
parent
7975bc63ca
commit
6cf82e3bd6
5 changed files with 39 additions and 1 deletions
|
|
@ -38,6 +38,16 @@ void ScriptMgr::OnCreatureRemoveWorld(Creature* creature)
|
|||
});
|
||||
}
|
||||
|
||||
void ScriptMgr::OnCreatureSaveToDB(Creature* creature)
|
||||
{
|
||||
ASSERT(creature);
|
||||
|
||||
ExecuteScript<AllCreatureScript>([&](AllCreatureScript* script)
|
||||
{
|
||||
script->OnCreatureSaveToDB(creature);
|
||||
});
|
||||
}
|
||||
|
||||
void ScriptMgr::Creature_SelectLevel(const CreatureTemplate* cinfo, Creature* creature)
|
||||
{
|
||||
ExecuteScript<AllCreatureScript>([&](AllCreatureScript* script)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue