mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 16:39:08 +01:00
Reverting: Game/Scripting: Add OnGameEvent hook for game objects.
This commit is contained in:
@@ -1776,11 +1776,6 @@ void ScriptMgr::OnGameObjectUpdate(GameObject* go, uint32 diff)
|
||||
tmpscript->OnUpdate(go, diff);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnGameEvent(bool start, uint16 eventId)
|
||||
{
|
||||
FOREACH_SCRIPT(GameObjectScript)->OnGameEvent(start, eventId);
|
||||
}
|
||||
|
||||
bool ScriptMgr::OnDummyEffect(Unit* caster, uint32 spellId, SpellEffIndex effIndex, GameObject* target)
|
||||
{
|
||||
ASSERT(caster);
|
||||
|
||||
@@ -485,9 +485,6 @@ class TC_GAME_API GameObjectScript : public ScriptObject, public UpdatableScript
|
||||
|
||||
// Called when a GameObjectAI object is needed for the gameobject.
|
||||
virtual GameObjectAI* GetAI(GameObject* /*go*/) const { return NULL; }
|
||||
|
||||
// Called when specific game event starts.
|
||||
virtual void OnGameEvent(bool /*start*/, uint16 /*eventId*/) { }
|
||||
};
|
||||
|
||||
class TC_GAME_API AreaTriggerScript : public ScriptObject
|
||||
@@ -988,7 +985,6 @@ class TC_GAME_API ScriptMgr
|
||||
void OnGameObjectStateChanged(GameObject* go, uint32 state);
|
||||
void OnGameObjectUpdate(GameObject* go, uint32 diff);
|
||||
GameObjectAI* GetGameObjectAI(GameObject* go);
|
||||
void OnGameEvent(bool start, uint16 eventId);
|
||||
|
||||
public: /* AreaTriggerScript */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user