CSEngine
Loading...
Searching...
No Matches
CSE::SScriptObject Class Reference
Inheritance diagram for CSE::SScriptObject:
CSE::SResource CSE::SObject

Public Member Functions

void Exterminate () override
 
std::vector< std::string > GetVariables () const
 
std::string GetScriptClassName () const
 
- Public Member Functions inherited from CSE::SResource
 SResource (bool isRegister)
 
 SResource (const SResource *resource, bool isRegister)
 
void SetName (std::string name)
 
void SetAbsoluteID (std::string id)
 
std::string GetName () const
 
std::string GetAbsoluteID () const
 
AssetMgr::AssetReferenceGetAssetReference (std::string hash="") const
 
void LinkResource (AssetMgr::AssetReference *asset)
 
void LinkResource (std::string name)
 
void SetHash (std::string &hash) override
 
- Public Member Functions inherited from CSE::SObject
 SObject (bool isRegister)
 
virtual void SetUndestroyable (bool enable)
 
virtual void Destroy ()
 
virtual void __FORCE_DESTROY__ ()
 
virtual std::string GenerateMeta ()
 
std::string GetHash () const
 

Protected Member Functions

void Init (const AssetMgr::AssetReference *asset) override
 

Additional Inherited Members

- Static Public Member Functions inherited from CSE::SResource
template<class T >
static T * Create (const std::string &name)
 
template<class T >
static T * Create (const AssetMgr::AssetReference *asset)
 
template<class T >
static T * Get (std::string name)
 
- Protected Attributes inherited from CSE::SObject
std::string m_hash
 

Detailed Description

Definition at line 12 of file SScriptObject.h.

Member Function Documentation

◆ Exterminate()

void SScriptObject::Exterminate ( )
overridevirtual

Implements CSE::SObject.

Definition at line 21 of file SScriptObject.cpp.

21 {
22
23}

◆ GetScriptClassName()

std::string CSE::SScriptObject::GetScriptClassName ( ) const
inline

Definition at line 22 of file SScriptObject.h.

22 {
23 return m_className;
24 }

◆ GetVariables()

std::vector< std::string > SScriptObject::GetVariables ( ) const

Definition at line 137 of file SScriptObject.cpp.

137 {
138 return m_variables;
139}

◆ Init()

void SScriptObject::Init ( const AssetMgr::AssetReference asset)
overrideprotectedvirtual

Implements CSE::SResource.

Definition at line 25 of file SScriptObject.cpp.

25 {
26 RemakeScript(asset->name_path);
27}

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