5 #include <entt/entity/registry.hpp> 26 virtual void Init(entt::registry& t_Reg) = 0;
29 virtual void Shutdown(entt::registry& t_Reg) = 0;
34 virtual void Update(entt::registry& t_Reg,
float DeltaTime) = 0;
55 virtual ~Game() =
default;
bool m_WantsToQuit
Change this value to true when the game is ready to exit the application entirely.
Definition: Game.h:61
FORCEINLINE class World * GetWorld() const
Gets the owning world of this game.
Definition: Game.h:42
Core engine class of Fling.
Definition: Engine.h:35
The game class is mean to be overridden on a per-game instance.
Definition: Game.h:16
FORCEINLINE bool WantsToQuit() const
If true then this game wants to texit the application entirely.
Definition: Game.h:49
The world holds all active levels in the game.
Definition: World.h:21
virtual void Init(entt::registry &t_Reg)=0
Called before the first Update tick.
Definition: SandboxGame.cpp:25
class World * m_OwningWorld
The world that updates this game.
Definition: Game.h:58
virtual void Shutdown(entt::registry &t_Reg)=0
Definition: SandboxGame.cpp:69
Class that removes the copy operator and constructor.
Definition: NonCopyable.hpp:10
virtual void Update(entt::registry &t_Reg, float DeltaTime)=0
Update is called every frame.
Definition: SandboxGame.cpp:80