The game class is mean to be overridden on a per-game instance.
More...
#include <Game.h>
Inherits Fling::NonCopyable.
Inherited by Sandbox::Game.
The game class is mean to be overridden on a per-game instance.
It provides an interface for users to add their own System calls in the update, read, write, etc
- See also
- World
◆ Game()
◆ ~Game()
| virtual Fling::Game::~Game |
( |
| ) |
|
|
protectedvirtualdefault |
◆ GetWorld()
| FORCEINLINE class World* Fling::Game::GetWorld |
( |
| ) |
const |
|
inline |
Gets the owning world of this game.
You can use the world to add entities to the world. Asserts that world exists first
- Returns
- FORCEINLINE* GetWorld
◆ Init()
| void Sandbox::Game::Init |
( |
entt::registry & |
t_Reg | ) |
|
|
pure virtual |
Called before the first Update tick.
Implemented in Sandbox::Game.
◆ Shutdown()
| void Sandbox::Game::Shutdown |
( |
entt::registry & |
t_Reg | ) |
|
|
pure virtual |
◆ Update()
| void Sandbox::Game::Update |
( |
entt::registry & |
t_Reg, |
|
|
float |
DeltaTime |
|
) |
| |
|
pure virtual |
Update is called every frame.
Call any system updates for your gameplay systems inside of here
Implemented in Sandbox::Game.
◆ WantsToQuit()
| FORCEINLINE bool Fling::Game::WantsToQuit |
( |
| ) |
const |
|
inline |
If true then this game wants to texit the application entirely.
- Returns
- FORCEINLINE WantsToQuit
◆ Engine
◆ m_OwningWorld
| class World* Fling::Game::m_OwningWorld = nullptr |
|
protected |
◆ m_WantsToQuit
| bool Fling::Game::m_WantsToQuit = false |
|
protected |
Change this value to true when the game is ready to exit the application entirely.
The documentation for this class was generated from the following files: