mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
General refactor
This commit is contained in:
parent
de134dc2e5
commit
1d5037893c
27 changed files with 558 additions and 419 deletions
27
src/logic/LevelController.h
Normal file
27
src/logic/LevelController.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#ifndef LOGIC_LEVEL_CONTROLLER_H_
|
||||
#define LOGIC_LEVEL_CONTROLLER_H_
|
||||
|
||||
#include "../settings.h"
|
||||
|
||||
class Level;
|
||||
class ChunksController;
|
||||
class PlayerController;
|
||||
|
||||
class LevelController {
|
||||
EngineSettings& settings;
|
||||
|
||||
Level* level;
|
||||
|
||||
ChunksController* chunks;
|
||||
PlayerController* player;
|
||||
public:
|
||||
LevelController(EngineSettings& settings, Level* level);
|
||||
~LevelController();
|
||||
|
||||
void update(float delta,
|
||||
bool input,
|
||||
bool pause,
|
||||
bool interactions);
|
||||
};
|
||||
|
||||
#endif // LOGIC_LEVEL_CONTROLLER_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue