add 'player-spawn-radius' generator parameter

This commit is contained in:
MihailRis 2026-03-19 19:03:22 +03:00
parent 4271f537a3
commit 2600dd7ed9
5 changed files with 27 additions and 9 deletions

View file

@ -46,6 +46,9 @@ inline constexpr float CHUNKS_MAP_MAX_LOAD_FACTOR = 0.1f;
/// @brief chunk volume (count of voxels per Chunk)
inline constexpr int CHUNK_VOL = (CHUNK_W * CHUNK_H * CHUNK_D);
/// @brief default player spawn radius (see GeneratorDef::playerSpawnRadius)
inline constexpr float DEFAULT_PLAYER_SPAWN_RADIUS = 100.0f;
/// @brief block id used to mark non-existing voxel (voxel of missing chunk)
inline constexpr blockid_t BLOCK_VOID = std::numeric_limits<blockid_t>::max();
/// @brief item id used to mark non-existing item (error)