TrinityCore
ScriptObject Class Reference

#include <ScriptMgr.h>

Public Member Functions

 ScriptObject (ScriptObject const &right)=delete
 
 ScriptObject (ScriptObject &&right)=delete
 
ScriptObjectoperator= (ScriptObject const &right)=delete
 
ScriptObjectoperator= (ScriptObject &&right)=delete
 
std::string const & GetName () const
 

Protected Member Functions

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

Private Attributes

std::string const _name
 

Friends

class ScriptMgr
 

Detailed Description

Definition at line 175 of file ScriptMgr.h.

Constructor & Destructor Documentation

◆ ScriptObject() [1/3]

ScriptObject::ScriptObject ( ScriptObject const &  right)
delete

◆ ScriptObject() [2/3]

ScriptObject::ScriptObject ( ScriptObject &&  right)
delete

◆ ScriptObject() [3/3]

ScriptObject::ScriptObject ( char const *  name)
protected

Definition at line 1199 of file ScriptMgr.cpp.

1199 : _name(name)
1200{
1201 sScriptMgr->IncreaseScriptCount();
1202}
#define sScriptMgr
Definition: ScriptMgr.h:1418
std::string const _name
Definition: ScriptMgr.h:195

◆ ~ScriptObject()

ScriptObject::~ScriptObject ( )
protectedvirtual

Definition at line 1204 of file ScriptMgr.cpp.

1205{
1206 sScriptMgr->DecreaseScriptCount();
1207}

Member Function Documentation

◆ GetName()

std::string const & ScriptObject::GetName ( ) const

Definition at line 1209 of file ScriptMgr.cpp.

1210{
1211 return _name;
1212}
+ Here is the caller graph for this function:

◆ operator=() [1/2]

ScriptObject & ScriptObject::operator= ( ScriptObject &&  right)
delete

◆ operator=() [2/2]

ScriptObject & ScriptObject::operator= ( ScriptObject const &  right)
delete

Friends And Related Function Documentation

◆ ScriptMgr

friend class ScriptMgr
friend

Definition at line 177 of file ScriptMgr.h.

Member Data Documentation

◆ _name

std::string const ScriptObject::_name
private

Definition at line 195 of file ScriptMgr.h.


The documentation for this class was generated from the following files: