[10935] Move script calls to ScriptMgr

- Script library presence is now optional.
- Some script hooks have new names. Scripting libraries need to be adjusted accordingly.

Signed-off-by: zergtmn <zerg@myisp.com>
This commit is contained in:
zergtmn 2010-12-29 21:48:06 +05:00
parent 918e646ca2
commit ec6089bbd8
32 changed files with 454 additions and 435 deletions

View file

@ -27,7 +27,6 @@
#include "WorldPacket.h"
#include "DBCStores.h"
#include "ProgressBar.h"
#include "ScriptCalls.h"
#include "ScriptMgr.h"
void MapManager::LoadTransports()
@ -579,7 +578,7 @@ void Transport::DoEventIfAny(WayPointMap::value_type const& node, bool departure
{
DEBUG_FILTER_LOG(LOG_FILTER_TRANSPORT_MOVES, "Taxi %s event %u of node %u of %s \"%s\") path", departure ? "departure" : "arrival", eventid, node.first, GetGuidStr().c_str(), GetName());
if (!Script->ProcessEventId(eventid, this, this, departure))
if (!sScriptMgr.OnProcessEvent(eventid, this, this, departure))
GetMap()->ScriptsStart(sEventScripts, eventid, this, this);
}
}