SPARK  0.1.0
A general purpose game engine written in C++.
Loading...
Searching...
No Matches
spark::core::Scene Class Referencefinal
Inheritance diagram for spark::core::Scene:
spark::rtti::HasRtti

Public Member Functions

 Scene (GameObject *scene_root)
 
 Scene (const Scene &other)=delete
 
 Scene (Scene &&other) noexcept=default
 
Sceneoperator= (const Scene &other)=delete
 
Sceneoperator= (Scene &&other) noexcept=default
 
const lib::Uuiduuid () const
 Gets the UUID of the Scene.
 
GameObjectroot ()
 Gets the root GameObject of the Scene.
 
void onLoad ()
 Method called when the Scene is loaded.
 
void onUpdate (float dt)
 Method called on every frame.
 
void onRender ()
 Method called on every frame after onUpdate to render the Scene.
 
void onUnload ()
 Method called when the Scene is unloaded.
 
- Public Member Functions inherited from spark::rtti::HasRtti
 HasRtti (const HasRtti &other)=default
 
 HasRtti (HasRtti &&other) noexcept=default
 
HasRttioperator= (const HasRtti &other)=default
 
HasRttioperator= (HasRtti &&other) noexcept=default
 
virtual RttiBaserttiInstance () const =0
 

Member Function Documentation

◆ root()

GameObject * spark::core::Scene::root ( )
nodiscard

Gets the root GameObject of the Scene.

Returns
A reference to the root GameObject.

◆ uuid()

const lib::Uuid & spark::core::Scene::uuid ( ) const
nodiscard

Gets the UUID of the Scene.

Returns
A const reference to the UUID of this Scene.