CSEngine
Loading...
Searching...
No Matches
CSE::SScene Class Reference
Inheritance diagram for CSE::SScene:
CSE::Scene CSE::SObject

Public Member Functions

void Init () override
 
void Tick (float elapsedTime) override
 
void Destroy () override
 
SGameObjectGetRoot ()
 
- Public Member Functions inherited from CSE::Scene
void Exterminate () override
 
- Public Member Functions inherited from CSE::SObject
 SObject (bool isRegister)
 
virtual void SetUndestroyable (bool enable)
 
virtual void __FORCE_DESTROY__ ()
 
virtual std::string GenerateMeta ()
 
std::string GetHash () const
 
virtual void SetHash (std::string &hash)
 

Additional Inherited Members

- Public Attributes inherited from CSE::Scene
std::string m_name
 
- Static Protected Member Functions inherited from CSE::Scene
static void SetScene (Scene *scene)
 
- Protected Attributes inherited from CSE::SObject
std::string m_hash
 

Detailed Description

Definition at line 12 of file SScene.h.

Constructor & Destructor Documentation

◆ SScene()

SScene::SScene ( )

Definition at line 9 of file SScene.cpp.

9 {
10 m_root = new SGameObject("__ROOT_OF_SCENE__");
11}

Member Function Documentation

◆ Destroy()

void SScene::Destroy ( )
overridevirtual

Implements CSE::Scene.

Definition at line 23 of file SScene.cpp.

23 {
24
25}

◆ GetRoot()

SGameObject * CSE::SScene::GetRoot ( )
inline

Definition at line 23 of file SScene.h.

23 {
24 return m_root;
25 }

◆ Init()

void SScene::Init ( )
overridevirtual

Implements CSE::Scene.

Definition at line 15 of file SScene.cpp.

15 {
16 InitGameObject(m_root);
17}

◆ Tick()

void SScene::Tick ( float  elapsedTime)
overridevirtual

Implements CSE::Scene.

Definition at line 19 of file SScene.cpp.

19 {
20 TickGameObject(m_root, elapsedTime);
21}

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