* Added new World::OnStartup/OnShutdown hooks.

--HG--
branch : trunk
This commit is contained in:
XTZGZoReX
2010-08-07 14:30:10 +02:00
parent 360e028331
commit f1c571a79e
3 changed files with 28 additions and 3 deletions

View File

@@ -1012,6 +1012,16 @@ void ScriptMgr::OnRelocate(Transport* transport, uint32 mapId, float x, float y,
tmpscript->OnRelocate(transport, mapId, x, y, z);
}
void ScriptMgr::OnStartup()
{
FOREACH_SCRIPT(WorldScript)->OnStartup();
}
void ScriptMgr::OnShutdown()
{
FOREACH_SCRIPT(WorldScript)->OnShutdown();
}
void SpellHandlerScript::RegisterSelf()
{
ScriptMgr::ScriptRegistry<SpellHandlerScript>::AddScript(this);