the big refactor + extracted data classes from coders/json to data/dynamic

This commit is contained in:
MihailRis
2024-01-17 16:32:53 +03:00
parent 34d4500e24
commit 377c8e5029
36 changed files with 908 additions and 875 deletions
+1 -4
View File
@@ -22,7 +22,7 @@ Chunks::Chunks(int w, int d,
LevelEvents* events,
const Content* content)
: content(content),
contentIds(content->indices),
contentIds(content->getIndices()),
chunks(w*d),
chunksSecond(w*d),
w(w), d(d), ox(ox), oz(oz),
@@ -32,9 +32,6 @@ Chunks::Chunks(int w, int d,
chunksCount = 0;
}
Chunks::~Chunks(){
}
voxel* Chunks::get(int x, int y, int z){
x -= ox * CHUNK_W;
z -= oz * CHUNK_D;