CSEngine
|
Public Member Functions | |
SGameObjectFromSPrefab (std::string name) | |
SGameObjectFromSPrefab (std::string name, std::string hash) | |
void | SetRefHash (std::string hash) |
std::string | GetRefHash () const |
SComponent * | GetSComponentByRefHash (const std::string &hash) const |
template<class T > | |
T * | GetComponentByRefHash (const std::string &hash) const |
std::string | GetRefID (const SComponent *component) const |
Public Member Functions inherited from CSE::SGameObject | |
SGameObject (std::string name) | |
SGameObject (std::string name, std::string hash) | |
virtual void | Init () |
virtual void | Tick (float elapsedTime) |
void | Exterminate () override |
void | Destroy () override |
자동 삭제가 아닌 특정한 상황에서 삭제될 때 호출되는 함수 | |
void | SetUndestroyable (bool enable) override |
void | AddChild (SGameObject *object) |
void | RemoveChildren (bool isAllLevel=false) |
void | RemoveChild (SGameObject *object) |
SGameObject * | GetParent () const |
void | SetParent (SGameObject *object) |
void | RemoveParent () |
const std::list< SGameObject * > & | GetChildren () const |
void | AddComponent (SComponent *component) |
컴포넌트를 이 오브젝트에 추가합니다. | |
template<class T > | |
T * | GetComponent () |
template<class T > | |
T * | GetComponentByHash (const std::string &id) const |
SComponent * | GetSComponentByHash (const std::string &hash) const |
const std::list< SComponent * > & | GetComponents () const |
HSQOBJECT | GetCustomComponent (const char *className) |
void | DeleteComponent (SComponent *component) |
template<class T > | |
T * | CreateComponent () |
SGameObject * | Find (std::string name) const |
SGameObject * | FindLocalByID (const std::string &id) |
std::string | GetName () const |
std::string | GetID () const |
std::string | GetID (const SComponent *component) const |
void | SetName (std::string name) |
TransformInterface * | GetTransform () const |
STATUS | GetStatus () const |
bool | GetIsEnable () const |
void | SetIsEnable (bool is_enable) |
std::string | GenerateMeta () override |
bool | isPrefab (bool OnlyThisObject=false) const |
void | SetIsPrefab (bool m_isPrefab) |
std::string | GetResourceID () const |
void | SetResourceID (const std::string &resID, bool setChildren=false) |
Public Member Functions inherited from CSE::SObject | |
SObject (bool isRegister) | |
virtual void | __FORCE_DESTROY__ () |
std::string | GetHash () const |
virtual void | SetHash (std::string &hash) |
Additional Inherited Members | |
Public Types inherited from CSE::SGameObject | |
enum | STATUS { IDLE = 0 , INIT = 1 , DESTROY = -1 , UNKOWN = -2 } |
Static Public Member Functions inherited from CSE::SGameObject | |
static SGameObject * | FindByID (std::string id) |
static SGameObject * | FindByHash (const std::string &hash) |
Protected Attributes inherited from CSE::SObject | |
std::string | m_hash |
Definition at line 9 of file SGameObjectFromSPrefab.h.
|
inline |
Definition at line 11 of file SGameObjectFromSPrefab.h.
|
inlineexplicit |
Definition at line 12 of file SGameObjectFromSPrefab.h.
|
inlineexplicit |
Definition at line 13 of file SGameObjectFromSPrefab.h.
T * CSE::SGameObjectFromSPrefab::GetComponentByRefHash | ( | const std::string & | hash | ) | const |
Definition at line 63 of file SGameObjectFromSPrefab.h.
|
inline |
Definition at line 21 of file SGameObjectFromSPrefab.h.
|
inline |
Definition at line 51 of file SGameObjectFromSPrefab.h.
|
inline |
Definition at line 25 of file SGameObjectFromSPrefab.h.
|
inline |
Definition at line 17 of file SGameObjectFromSPrefab.h.