SolarSim
Loading...
Searching...
No Matches
solarsim::Scene Struct Reference

Container for entities, components, and simulation state. More...

#include <scene.hpp>

Public Member Functions

void togglePause ()
 Toggle simulation pause state.
void toggleReverse ()
 Toggle simulation direction (forward/reverse).

Data Fields

Registry registry
float timeScale = 1.0f
bool paused = false
bool reverse = false

Detailed Description

Container for entities, components, and simulation state.

Note
Manages the complete game world state and simulation timing
Warning
Scene should be loaded/unloaded via SceneManager

Member Function Documentation

◆ togglePause()

void solarsim::Scene::togglePause ( )
inline

Toggle simulation pause state.

Note
When paused, systems don't process entity updates

◆ toggleReverse()

void solarsim::Scene::toggleReverse ( )
inline

Toggle simulation direction (forward/reverse).

Note
Reverse mode may affect physics and animation systems

Field Documentation

◆ paused

bool solarsim::Scene::paused = false

Whether simulation is paused

◆ registry

Registry solarsim::Scene::registry

Registry managing all entities and components

◆ reverse

bool solarsim::Scene::reverse = false

Whether simulation runs in reverse

◆ timeScale

float solarsim::Scene::timeScale = 1.0f

Simulation speed multiplier


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