feat(Core/Hooks): added collection of hooks to extends AC (#3047)
This collection of hooks comes from the Maelstrom project. It allows to release modules such as : - 3v3-soloqueue - 1v1 arena - pvestats and many others
This commit is contained in:
parent
911fbb377e
commit
2b3d46bd4f
46 changed files with 2053 additions and 278 deletions
|
|
@ -87,6 +87,8 @@ Object::Object() : m_PackGUID(sizeof(uint64) + 1)
|
|||
m_objectUpdated = false;
|
||||
|
||||
m_PackGUID.appendPackGUID(0);
|
||||
|
||||
sScriptMgr->OnConstructObject(this);
|
||||
}
|
||||
|
||||
WorldObject::~WorldObject()
|
||||
|
|
@ -110,6 +112,8 @@ WorldObject::~WorldObject()
|
|||
|
||||
Object::~Object()
|
||||
{
|
||||
sScriptMgr->OnDestructObject(this);
|
||||
|
||||
if (IsInWorld())
|
||||
{
|
||||
sLog->outCrash("Object::~Object - guid=" UI64FMTD ", typeid=%d, entry=%u deleted but still in world!!", GetGUID(), GetTypeId(), GetEntry());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue