content-pack id validation + refactor

This commit is contained in:
MihailRis
2024-01-25 03:40:08 +03:00
parent ba4338c4fa
commit b7fbb8621a
10 changed files with 111 additions and 53 deletions
+3
View File
@@ -5,6 +5,7 @@
#include "../typedefs.h"
class Level;
class Chunk;
class Chunks;
class Lighting;
class WorldGenerator;
@@ -23,6 +24,8 @@ private:
/* Process one chunk: load it or calculate lights for it */
bool loadVisible();
bool buildLights(std::shared_ptr<Chunk> chunk);
void createChunk(int x, int y);
public:
ChunksController(Level* level, uint padding);
~ChunksController();