mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
minor controllers refactor
This commit is contained in:
parent
9e02f1122f
commit
005bcfb436
5 changed files with 56 additions and 58 deletions
|
|
@ -13,9 +13,9 @@ class WorldGenerator;
|
|||
/// @brief ChunksController manages chunks dynamic loading/unloading
|
||||
class ChunksController {
|
||||
private:
|
||||
Level* level;
|
||||
Chunks* chunks;
|
||||
Lighting* lighting;
|
||||
Level& level;
|
||||
Chunks& chunks;
|
||||
Lighting& lighting;
|
||||
uint padding;
|
||||
std::unique_ptr<WorldGenerator> generator;
|
||||
|
||||
|
|
@ -24,7 +24,7 @@ private:
|
|||
bool buildLights(const std::shared_ptr<Chunk>& chunk);
|
||||
void createChunk(int x, int y);
|
||||
public:
|
||||
ChunksController(Level* level, uint padding);
|
||||
ChunksController(Level& level, uint padding);
|
||||
~ChunksController();
|
||||
|
||||
/// @param maxDuration milliseconds reserved for chunks loading
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue