mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
add 'player-spawn-radius' generator parameter
This commit is contained in:
parent
4271f537a3
commit
2600dd7ed9
5 changed files with 27 additions and 9 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue