WorldFiles region format and magic check

This commit is contained in:
MihailRis
2024-01-03 23:25:58 +03:00
parent e7e2c16ee6
commit 460b08a006
3 changed files with 47 additions and 19 deletions
+2 -2
View File
@@ -5,14 +5,14 @@
#include "typedefs.h"
const int ENGINE_VERSION_MAJOR = 0;
const int ENGINE_VERSION_MINOR = 16;
const int ENGINE_VERSION_MINOR = 17;
const int CHUNK_W = 16;
const int CHUNK_H = 256;
const int CHUNK_D = 16;
/* Chunk volume (count of voxels per Chunk) */
const int CHUNK_VOL = (CHUNK_W * CHUNK_H * CHUNK_D);
constexpr int CHUNK_VOL = (CHUNK_W * CHUNK_H * CHUNK_D);
/* BLOCK_VOID is block id used to mark non-existing voxel (voxel of missing chunk) */
const blockid_t BLOCK_VOID = std::numeric_limits<blockid_t>::max();