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

#include "ScriptMgr.h"

Inheritance diagram for ScriptObject:
AccountScript AchievementCriteriaScript AchievementScript AllCreatureScript AllGameObjectScript AllItemScript AllMapScript AreaTriggerScript ArenaScript ArenaTeamScript AuctionHouseScript BGScript BattlegroundMapScript BattlegroundScript CommandSC CommandScript ConditionScript CreatureScript DatabaseScript DynamicObjectScript ElunaScript FormulaScript GameEventScript GameObjectScript GlobalScript GroupScript GuildScript InstanceMapScript ItemScript LootScript MailScript MiscScript ModuleScript MovementHandlerScript OutdoorPvPScript PetScript PlayerScript ServerScript SpellSC 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
 

Protected Member Functions

 ScriptObject (const char *name)
 
virtual ~ScriptObject ()=default
 

Private Attributes

const std::string _name
 

Friends

class ScriptMgr
 

Detailed Description

Constructor & Destructor Documentation

◆ ScriptObject()

ScriptObject::ScriptObject ( const char *  name)
inlineprotected
121 : _name(std::string(name))
122 {
123 }
const std::string _name
Definition: ScriptMgr.h:128

◆ ~ScriptObject()

virtual ScriptObject::~ScriptObject ( )
protectedvirtualdefault

Member Function Documentation

◆ checkValidity()

virtual void ScriptObject::checkValidity ( )
inlinevirtual

Reimplemented in WorldMapScript, InstanceMapScript, and BattlegroundMapScript.

115{ }

◆ GetName()

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

References _name.

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

◆ isAfterLoadScript()

virtual bool ScriptObject::isAfterLoadScript ( ) const
inlinevirtual

Reimplemented in WorldMapScript, and BattlegroundMapScript.

114{ return IsDatabaseBound(); }
virtual bool IsDatabaseBound() const
Definition: ScriptMgr.h:113

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().