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

Public Member Functions

 RESOURCE_DEFINE_CONSTRUCTOR (SScriptObject)
 
void Exterminate () override
 
std::vector< std::string > GetVariables () const
 
std::string GetScriptClassName () const
 
void SetValue (std::string name_str, Arguments value) override
 
std::string PrintValue () const override
 
- Public Member Functions inherited from CSE::SResource
 SResource (std::string classType)
 
 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 ()
 
std::string GetHash () const
 
- Public Member Functions inherited from CSE::VariableBinder
- Public Member Functions inherited from CSE::ReflectionObject
 ReflectionObject (std::string type)
 
void SetClassType (std::string type)
 
const char * GetClassType () const
 
bool IsSameClass (const char *classType) const
 

Protected Member Functions

void Init (const AssetMgr::AssetReference *asset) override
 
- Protected Member Functions inherited from CSE::SResource
- Protected Member Functions inherited from CSE::VariableBinder

Additional Inherited Members

- Static Public Member Functions inherited from CSE::SResource
template<class T >
static T * Create (const std::string &name)
 
static SResourceCreate (const std::string &name, const std::string &classType)
 
template<class T >
static T * Create (const AssetMgr::AssetReference *asset)
 
static SResourceCreate (const AssetMgr::AssetReference *asset, const std::string &classType)
 
template<class T >
static T * Get (std::string name)
 
static SResourceGet (std::string &name)
 
- Static Public Member Functions inherited from CSE::ReflectionObject
static ReflectionObjectNewObject (const std::string &name)
 
- Protected Types inherited from CSE::VariableBinder
typedef std::vector< std::string > Arguments
 
- Protected Attributes inherited from CSE::SObject
std::string m_hash
 
- Protected Attributes inherited from CSE::ReflectionObject
std::string m_class
 

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 21 of file SScriptObject.h.

21 {
22 return m_className;
23 }

◆ 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}

◆ PrintValue()

string SScriptObject::PrintValue ( ) const
overridevirtual

Implements CSE::VariableBinder.

Definition at line 144 of file SScriptObject.cpp.

144 {
145 return {};
146}

◆ SetValue()

void SScriptObject::SetValue ( std::string name_str,
Arguments value )
overridevirtual

Used to get serialized values. All classes that inherit from VariableBinder will unconditionally call this function first during initialization.

Parameters
name_strName of values
valueSerialized values

Implements CSE::VariableBinder.

Definition at line 141 of file SScriptObject.cpp.

141 {
142}

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