From e21b2c9baa506a265fddd50f65a69d2bb297cc96 Mon Sep 17 00:00:00 2001 From: megamage Date: Thu, 19 Feb 2009 18:44:20 -0600 Subject: *Implemented gameobjects and creatures grouping (pools of them) *Groups (called pools) can be also member of any game event Author: Neo2003 --HG-- branch : trunk --- src/game/World.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/game/World.cpp') diff --git a/src/game/World.cpp b/src/game/World.cpp index 084be8f691b..21fb07d5794 100644 --- a/src/game/World.cpp +++ b/src/game/World.cpp @@ -57,6 +57,7 @@ #include "VMapFactory.h" #include "GlobalEvents.h" #include "GameEvent.h" +#include "PoolHandler.h" #include "Database/DatabaseImpl.h" #include "GridNotifiersImpl.h" #include "CellImpl.h" @@ -1220,6 +1221,9 @@ void World::SetInitialWorldSettings() sLog.outString( "Loading Gameobject Respawn Data..." ); // must be after PackInstances() objmgr.LoadGameobjectRespawnTimes(); + sLog.outString( "Loading Objects Pooling Data..."); + poolhandler.LoadFromDB(); + sLog.outString( "Loading Game Event Data..."); sLog.outString(); gameeventmgr.LoadFromDB(); @@ -1455,6 +1459,9 @@ void World::SetInitialWorldSettings() sLog.outString("Calculate next daily quest reset time..." ); InitDailyQuestResetTime(); + sLog.outString("Starting objects Pooling system..." ); + poolhandler.Initialize(); + sLog.outString("Starting Game Event system..." ); uint32 nextGameEvent = gameeventmgr.Initialize(); m_timers[WUPDATE_EVENTS].SetInterval(nextGameEvent); //depend on next event -- cgit v1.2.3