The world holds all active levels in the game.
More...
#include <World.h>
Inherits Fling::NonCopyable.
The world holds all active levels in the game.
There will only ever be exactly one World instance at any given time.
- See also
- Level
◆ Init()
void Fling::World::Init |
( |
| ) |
|
Initializes the world.
Loads the StartLevel that is specified in the config.
- Note
- Keep explict Init and Shutdown functions to make the startup order more readable
◆ LoadLevel()
void Fling::World::LoadLevel |
( |
const std::string & |
t_LevelPath | ) |
|
Load a level into the world.
- Parameters
-
t_LevelPath | The path to the current level. (Relative to the assets dir) |
◆ PreTick()
void Fling::World::PreTick |
( |
| ) |
|
Called before the first Update tick on the world.
◆ ShouldQuit()
FORCEINLINE bool Fling::World::ShouldQuit |
( |
| ) |
const |
|
inline |
Check if the world wants to exit the program.
- See also
- Engine::Tick
- Returns
- True if the world has signlaed for exit
◆ Shutdown()
void Fling::World::Shutdown |
( |
| ) |
|
◆ Update()
void Fling::World::Update |
( |
float |
t_DeltaTime | ) |
|
Tick all active levels in the world.
- Parameters
-
t_DeltaTime | Time between previous frame and the current one. |
◆ m_ActiveLevels
std::vector<std::unique_ptr<Level> > Fling::World::m_ActiveLevels |
|
private |
Currently active levels in the world.
◆ m_ShouldQuit
UINT8 Fling::World::m_ShouldQuit = false |
|
private |
The documentation for this class was generated from the following files: