AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
AllGameObjectScript Class Reference

#include "AllGameObjectScript.h"

Inheritance diagram for AllGameObjectScript:
ScriptObject

Public Member Functions

virtual void OnGameObjectAddWorld (GameObject *)
 This hook runs after add game object in world. More...
 
virtual void OnGameObjectSaveToDB (GameObject *)
 This hook runs after the game object iis saved to the database. More...
 
virtual void OnGameObjectRemoveWorld (GameObject *)
 This hook runs after remove game object in world. More...
 
virtual void OnGameObjectUpdate (GameObject *, uint32)
 This hook runs after remove game object in world. More...
 
virtual bool CanGameObjectGossipHello (Player *, GameObject *)
 
virtual bool CanGameObjectGossipSelect (Player *, GameObject *, uint32, uint32)
 
virtual bool CanGameObjectGossipSelectCode (Player *, GameObject *, uint32, uint32, const char *)
 
virtual bool CanGameObjectQuestAccept (Player *, GameObject *, Quest const *)
 
virtual bool CanGameObjectQuestReward (Player *, GameObject *, Quest const *, uint32)
 
virtual void OnGameObjectDestroyed (GameObject *, Player *)
 
virtual void OnGameObjectDamaged (GameObject *, Player *)
 
virtual void OnGameObjectModifyHealth (GameObject *, Unit *, int32 &, SpellInfo const *)
 
virtual void OnGameObjectLootStateChanged (GameObject *, uint32, Unit *)
 
virtual void OnGameObjectStateChanged (GameObject *, uint32)
 
virtual GameObjectAIGetGameObjectAI (GameObject *) const
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 

Protected Member Functions

 AllGameObjectScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ AllGameObjectScript()

AllGameObjectScript::AllGameObjectScript ( const char *  name)
protected
52 :
53 ScriptObject(name)
54{
56}
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition: ScriptMgr.h:737
Definition: ScriptObject.h:44

References ScriptRegistry< TScript >::AddScript().

Member Function Documentation

◆ CanGameObjectGossipHello()

virtual bool AllGameObjectScript::CanGameObjectGossipHello ( Player ,
GameObject  
)
inlinevirtual
56{ return false; }

Referenced by ScriptMgr::OnGossipHello().

◆ CanGameObjectGossipSelect()

virtual bool AllGameObjectScript::CanGameObjectGossipSelect ( Player ,
GameObject ,
uint32  ,
uint32   
)
inlinevirtual
59{ return false; }

Referenced by ScriptMgr::OnGossipSelect().

◆ CanGameObjectGossipSelectCode()

virtual bool AllGameObjectScript::CanGameObjectGossipSelectCode ( Player ,
GameObject ,
uint32  ,
uint32  ,
const char *   
)
inlinevirtual
62{ return false; }

Referenced by ScriptMgr::OnGossipSelectCode().

◆ CanGameObjectQuestAccept()

virtual bool AllGameObjectScript::CanGameObjectQuestAccept ( Player ,
GameObject ,
Quest const *   
)
inlinevirtual
65{ return false; }

Referenced by ScriptMgr::OnQuestAccept().

◆ CanGameObjectQuestReward()

virtual bool AllGameObjectScript::CanGameObjectQuestReward ( Player ,
GameObject ,
Quest const *  ,
uint32   
)
inlinevirtual
68{ return false; }

Referenced by ScriptMgr::OnQuestReward().

◆ GetGameObjectAI()

virtual GameObjectAI * AllGameObjectScript::GetGameObjectAI ( GameObject ) const
inlinevirtual
86{ return nullptr; }

Referenced by ScriptMgr::GetGameObjectAI().

◆ OnGameObjectAddWorld()

virtual void AllGameObjectScript::OnGameObjectAddWorld ( GameObject )
inlinevirtual

This hook runs after add game object in world.

Parameters
goContains information about the GameObject
34{ }

Referenced by ScriptMgr::OnGameObjectAddWorld().

◆ OnGameObjectDamaged()

virtual void AllGameObjectScript::OnGameObjectDamaged ( GameObject ,
Player  
)
inlinevirtual
74{ }

Referenced by ScriptMgr::OnGameObjectDamaged().

◆ OnGameObjectDestroyed()

virtual void AllGameObjectScript::OnGameObjectDestroyed ( GameObject ,
Player  
)
inlinevirtual
71{ }

Referenced by ScriptMgr::OnGameObjectDestroyed().

◆ OnGameObjectLootStateChanged()

virtual void AllGameObjectScript::OnGameObjectLootStateChanged ( GameObject ,
uint32  ,
Unit  
)
inlinevirtual

◆ OnGameObjectModifyHealth()

virtual void AllGameObjectScript::OnGameObjectModifyHealth ( GameObject ,
Unit ,
int32 ,
SpellInfo const *   
)
inlinevirtual

◆ OnGameObjectRemoveWorld()

virtual void AllGameObjectScript::OnGameObjectRemoveWorld ( GameObject )
inlinevirtual

This hook runs after remove game object in world.

Parameters
goContains information about the GameObject
46{ }

Referenced by ScriptMgr::OnGameObjectRemoveWorld().

◆ OnGameObjectSaveToDB()

virtual void AllGameObjectScript::OnGameObjectSaveToDB ( GameObject )
inlinevirtual

This hook runs after the game object iis saved to the database.

Parameters
goContains information about the GameObject
40{ }

Referenced by ScriptMgr::OnGameObjectSaveToDB().

◆ OnGameObjectStateChanged()

virtual void AllGameObjectScript::OnGameObjectStateChanged ( GameObject ,
uint32   
)
inlinevirtual

◆ OnGameObjectUpdate()

virtual void AllGameObjectScript::OnGameObjectUpdate ( GameObject ,
uint32   
)
inlinevirtual

This hook runs after remove game object in world.

Parameters
goContains information about the GameObject
53{ }

Referenced by ScriptMgr::OnGameObjectUpdate().