add :block placement for single blocks

This commit is contained in:
eliotbyte
2025-11-24 21:23:59 +03:00
committed by MihailRis
parent 2af7b23b2e
commit 9ccaecddd2
4 changed files with 153 additions and 7 deletions
+7
View File
@@ -79,6 +79,7 @@ class WorldGenerator {
);
void placeLine(const LinePlacement& line, int priority);
void placeBlock(const BlockPlacement& block, int priority);
void generatePlacements(
const ChunkPrototype& prototype, voxel* voxels, int x, int z
@@ -89,6 +90,12 @@ class WorldGenerator {
voxel* voxels,
int x, int z
);
void generateBlock(
const ChunkPrototype& prototype,
const BlockPlacement& placement,
voxel* voxels,
int x, int z
);
void generateStructure(
const ChunkPrototype& prototype,
const StructurePlacement& placement,