* Added new World::OnStartup/OnShutdown hooks.

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

No files matched your search

+10
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);