minor refactor

This commit is contained in:
MihailRis
2023-12-30 00:02:17 +03:00
parent e7e7bbbe59
commit d2ace01c07
2 changed files with 7 additions and 9 deletions
+4 -3
View File
@@ -1,6 +1,7 @@
#ifndef LOGIC_LEVEL_CONTROLLER_H_
#define LOGIC_LEVEL_CONTROLLER_H_
#include <memory>
#include "../settings.h"
class Level;
@@ -13,9 +14,9 @@ class LevelController {
EngineSettings& settings;
Level* level;
// Sub-controllers
BlocksController* blocks;
ChunksController* chunks;
PlayerController* player;
std::unique_ptr<BlocksController> blocks;
std::unique_ptr<ChunksController> chunks;
std::unique_ptr<PlayerController> player;
public:
LevelController(EngineSettings& settings, Level* level);
~LevelController();