SDEngine
Game Engine
Loading...
Searching...
No Matches
sd::Scene Class Reference

#include <Scene.hpp>

+ Collaboration diagram for sd::Scene:

Public Member Functions

 Scene (std::string name="Untitled Scene")
 
void on_start ()
 
void on_stop ()
 
void on_update (float dt)
 
bool is_active () const
 
const std::string & get_name () const
 
template<typename T , typename... Args>
void add_command (Args &&... args)
 
void apply_commands ()
 
usize command_count () const
 

Public Attributes

EntityManager em
 

Private Attributes

CommandQueue m_commands
 
std::string m_name
 
bool m_is_active = false
 

Constructor & Destructor Documentation

◆ Scene()

sd::Scene::Scene ( std::string  name = "Untitled Scene")
inlineexplicit

Member Function Documentation

◆ add_command()

template<typename T , typename... Args>
void sd::Scene::add_command ( Args &&...  args)
inline

◆ apply_commands()

void sd::Scene::apply_commands ( )
inline

◆ command_count()

usize sd::Scene::command_count ( ) const
inline

◆ get_name()

const std::string & sd::Scene::get_name ( ) const
inline

◆ is_active()

bool sd::Scene::is_active ( ) const
inline

◆ on_start()

void sd::Scene::on_start ( )
inline

◆ on_stop()

void sd::Scene::on_stop ( )
inline

◆ on_update()

void sd::Scene::on_update ( float  dt)
inline

Member Data Documentation

◆ em

EntityManager sd::Scene::em

◆ m_commands

CommandQueue sd::Scene::m_commands
private

◆ m_is_active

bool sd::Scene::m_is_active = false
private

◆ m_name

std::string sd::Scene::m_name
private

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