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

#include "ScriptMgr.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 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
 

Protected Member Functions

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

Detailed Description

Constructor & Destructor Documentation

◆ AllGameObjectScript()

AllGameObjectScript::AllGameObjectScript ( const char *  name)
protected
594 : ScriptObject(name)
595{
597}
Definition: ScriptMgr.h:107
static void AddScript(TScript *const script)
Definition: ScriptMgr.h:2708

References ScriptRegistry< TScript >::AddScript().

Member Function Documentation

◆ CanGameObjectGossipHello()

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

Referenced by ScriptMgr::OnGossipHello().

◆ CanGameObjectGossipSelect()

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

Referenced by ScriptMgr::OnGossipSelect().

◆ CanGameObjectGossipSelectCode()

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

Referenced by ScriptMgr::OnGossipSelectCode().

◆ CanGameObjectQuestAccept()

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

Referenced by ScriptMgr::OnQuestAccept().

◆ CanGameObjectQuestReward()

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

Referenced by ScriptMgr::OnQuestReward().

◆ GetGameObjectAI()

virtual GameObjectAI * AllGameObjectScript::GetGameObjectAI ( GameObject ) const
inlinevirtual
714{ 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
665{ }

Referenced by ScriptMgr::OnGameObjectAddWorld().

◆ OnGameObjectDamaged()

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

Referenced by ScriptMgr::OnGameObjectDamaged().

◆ OnGameObjectDestroyed()

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

Referenced by ScriptMgr::OnGameObjectDestroyed().

◆ OnGameObjectLootStateChanged()

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

◆ OnGameObjectRemoveWorld()

virtual void AllGameObjectScript::OnGameObjectRemoveWorld ( GameObject )
inlinevirtual

This hook runs after remove game object in world.

Parameters
goContains information about the GameObject
677{ }

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
671{ }

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
684{ }

Referenced by ScriptMgr::OnGameObjectUpdate().