Core/SAI: Preliminary implementation of SMART_EVENT_GAME_EVENT_START and SMART_EVENT_GAME_EVENT_END {param1: game_event.entry}

This commit is contained in:
Machiavelli
2011-12-11 16:23:43 +01:00
parent c7ebd0ffa9
commit 1b2c413933
10 changed files with 83 additions and 12 deletions
+9 -9
View File
@@ -201,16 +201,16 @@ class ObjectAccessor
}
// when using this, you must use the hashmapholder's lock
//HashMapHolder<Creature>::MapType& GetCreatures()
//{
// return HashMapHolder<Creature>::GetContainer();
//}
static HashMapHolder<Creature>::MapType const& GetCreatures()
{
return HashMapHolder<Creature>::GetContainer();
}
//// when using this, you must use the hashmapholder's lock
//HashMapHolder<GameObject>::MapType& GetGameObjects()
//{
// return HashMapHolder<GameObject>::GetContainer();
//}
// when using this, you must use the hashmapholder's lock
static HashMapHolder<GameObject>::MapType const& GetGameObjects()
{
return HashMapHolder<GameObject>::GetContainer();
}
template<class T> static void AddObject(T* object)
{