CSEngine
|
Public Member Functions | |
RESOURCE_DEFINE_CONSTRUCTOR (SPrefab) | |
SGameObject * | Clone (const vec3 &position, SGameObject *parent=nullptr) |
SGameObject * | Clone (const vec3 &position, const vec3 &scale, Quaternion rotation, SGameObject *parent=nullptr) |
bool | SetGameObject (SGameObject *obj) |
void | Exterminate () override |
SGameObject * | GetRoot () const |
void | SetValue (std::string name_str, Arguments value) override |
std::string | PrintValue () const override |
![]() | |
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::AssetReference * | GetAssetReference (std::string hash="") const |
void | LinkResource (AssetMgr::AssetReference *asset) |
void | LinkResource (std::string name) |
void | SetHash (std::string &hash) override |
![]() | |
SObject (bool isRegister) | |
virtual void | SetUndestroyable (bool enable) |
virtual void | Destroy () |
std::string | GetHash () const |
![]() | |
![]() | |
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 |
void | GenerateResourceID (SGameObject *obj=nullptr) |
![]() | |
![]() |
Additional Inherited Members | |
![]() | |
template<class T > | |
static T * | Create (const std::string &name) |
static SResource * | Create (const std::string &name, const std::string &classType) |
template<class T > | |
static T * | Create (const AssetMgr::AssetReference *asset) |
static SResource * | Create (const AssetMgr::AssetReference *asset, const std::string &classType) |
template<class T > | |
static T * | Get (std::string name) |
static SResource * | Get (std::string &name) |
![]() | |
static ReflectionObject * | NewObject (const std::string &name) |
![]() | |
typedef std::vector< std::string > | Arguments |
![]() | |
std::string | m_hash |
![]() | |
std::string | m_class |
SGameObject * SPrefab::Clone | ( | const vec3 & | position, |
const vec3 & | scale, | ||
Quaternion | rotation, | ||
SGameObject * | parent = nullptr ) |
Definition at line 33 of file SPrefab.cpp.
SGameObject * SPrefab::Clone | ( | const vec3 & | position, |
SGameObject * | parent = nullptr ) |
Definition at line 22 of file SPrefab.cpp.
|
overridevirtual |
|
protected |
Definition at line 97 of file SPrefab.cpp.
|
inline |
|
overrideprotectedvirtual |
Implements CSE::SResource.
Definition at line 56 of file SPrefab.cpp.
|
overridevirtual |
Implements CSE::VariableBinder.
Definition at line 134 of file SPrefab.cpp.
bool SPrefab::SetGameObject | ( | SGameObject * | obj | ) |
Definition at line 45 of file SPrefab.cpp.
|
overridevirtual |
Used to get serialized values. All classes that inherit from VariableBinder will unconditionally call this function first during initialization.
name_str | Name of values |
value | Serialized values |
Implements CSE::VariableBinder.
Definition at line 130 of file SPrefab.cpp.