mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
Minor refactor + comments
This commit is contained in:
parent
1d5037893c
commit
c0050cffaa
4 changed files with 19 additions and 10 deletions
|
|
@ -7,21 +7,25 @@ class Level;
|
|||
class ChunksController;
|
||||
class PlayerController;
|
||||
|
||||
/* LevelController - the main game logic controller */
|
||||
class LevelController {
|
||||
EngineSettings& settings;
|
||||
|
||||
Level* level;
|
||||
|
||||
// Sub-controllers
|
||||
ChunksController* chunks;
|
||||
PlayerController* player;
|
||||
public:
|
||||
LevelController(EngineSettings& settings, Level* level);
|
||||
~LevelController();
|
||||
|
||||
/*
|
||||
@param delta time elapsed since the last update
|
||||
@param input is user input allowed to be handled
|
||||
@param pause is world and player simulation paused
|
||||
*/
|
||||
void update(float delta,
|
||||
bool input,
|
||||
bool pause,
|
||||
bool interactions);
|
||||
bool pause);
|
||||
};
|
||||
|
||||
#endif // LOGIC_LEVEL_CONTROLLER_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue