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

#include "ScriptObject.h"

Inheritance diagram for ScriptObject:
AccountScript AchievementCriteriaScript AchievementScript AllBattlegroundScript AllCommandScript AllCreatureScript AllGameObjectScript AllItemScript AllMapScript AllSpellScript AreaTriggerScript ArenaScript ArenaTeamScript AuctionHouseScript BattlegroundMapScript BattlegroundScript CommandScript ConditionScript CreatureScript DatabaseScript DynamicObjectScript ElunaScript FormulaScript GameEventScript GameObjectScript GlobalScript GroupScript GuildScript InstanceMapScript ItemScript LootScript MailScript MiscScript ModuleScript MovementHandlerScript OutdoorPvPScript PetScript PlayerScript ServerScript SpellScriptLoader TransportScript UnitScript VehicleScript WeatherScript WorldMapScript WorldObjectScript WorldScript

Public Member Functions

virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 

Protected Member Functions

 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 

Private Attributes

const std::string _name
 
const uint16 _totalAvailableHooks
 

Friends

class ScriptMgr
 

Detailed Description

Constructor & Destructor Documentation

◆ ScriptObject()

ScriptObject::ScriptObject ( const char *  name,
uint16  totalAvailableHooks = 0 
)
inlineprotected
59 : _name(std::string(name)), _totalAvailableHooks(totalAvailableHooks)
60 {
61 }
const std::string _name
Definition: ScriptObject.h:66
const uint16 _totalAvailableHooks
Definition: ScriptObject.h:67

◆ ~ScriptObject()

virtual ScriptObject::~ScriptObject ( )
protectedvirtualdefault

Member Function Documentation

◆ checkValidity()

virtual void ScriptObject::checkValidity ( )
inlinevirtual

◆ GetName()

const std::string & ScriptObject::GetName ( ) const
inline
54{ return _name; }

References _name.

Referenced by ScriptMgr::CreateAuraScripts(), and ScriptMgr::CreateSpellScripts().

◆ GetTotalAvailableHooks()

uint16 ScriptObject::GetTotalAvailableHooks ( )
inline
56{ return _totalAvailableHooks; }

References _totalAvailableHooks.

◆ isAfterLoadScript()

virtual bool ScriptObject::isAfterLoadScript ( ) const
inlinevirtual

Reimplemented in BattlegroundMapScript, and WorldMapScript.

51{ return IsDatabaseBound(); }
virtual bool IsDatabaseBound() const
Definition: ScriptObject.h:50

References IsDatabaseBound().

◆ IsDatabaseBound()

Friends And Related Function Documentation

◆ ScriptMgr

friend class ScriptMgr
friend

Member Data Documentation

◆ _name

const std::string ScriptObject::_name
private

Referenced by GetName().

◆ _totalAvailableHooks

const uint16 ScriptObject::_totalAvailableHooks
private

Referenced by GetTotalAvailableHooks().