22 explicit Level(
const std::string& t_LevelFile,
World* t_OwningWorld);
31 void Update(
float t_DeltaTime);
A level contains active objects and provides the environment for the player.
Definition: Level.h:15
void PostLoad()
Any behavior that needs to happen after the level has been fully loaded.
Definition: Level.cpp:45
~Level()
Definition: Level.cpp:50
std::string m_LevelFileName
The path to the level file (should be a full path, NOT relative to assets dir)
Definition: Level.h:51
World * GetOwningWorld() const
Get the Owning World object of this level.
Definition: Level.h:43
The world holds all active levels in the game.
Definition: World.h:17
void Unload()
Unload the current level and all actors inside of it.
Definition: Level.cpp:64
World * m_OwningWorld
The owning work that this level exists in.
Definition: Level.h:64
Class that removes the copy operator and constructor.
Definition: NonCopyable.hpp:10
Level(const std::string &t_LevelFile, World *t_OwningWorld)
Loads this level based on the given file name.
Definition: Level.cpp:9
void Update(float t_DeltaTime)
Update the BSP of actors and tick every active actor.
Definition: Level.cpp:56
void LoadLevel()
Load the level based on the current file name!
Definition: Level.cpp:20