New world format, fixes

This commit is contained in:
MihailRis
2023-11-05 15:32:46 +03:00
committed by GitHub
parent 0c65b13f4e
commit 0cf8382e95
21 changed files with 350 additions and 173 deletions
+3 -1
View File
@@ -11,6 +11,7 @@ class VoxelRenderer;
class Chunk;
class voxel;
class WorldFiles;
class LevelEvents;
class Chunks {
public:
@@ -20,8 +21,9 @@ public:
size_t chunksCount;
int w,d;
int ox,oz;
LevelEvents* events;
Chunks(int w, int d, int ox, int oz);
Chunks(int w, int d, int ox, int oz, LevelEvents* events);
~Chunks();
bool putChunk(std::shared_ptr<Chunk> chunk);