add fragment.crop, fragment:crop() & fix fragments rotation when width is not equal to depth & fix extra structures placements

This commit is contained in:
MihailRis
2024-10-15 00:03:06 +03:00
parent 44eedadc06
commit 48143c5a2b
13 changed files with 93 additions and 20 deletions
+5 -5
View File
@@ -66,10 +66,6 @@ class WorldGenerator {
void generateStructures(ChunkPrototype& prototype, int x, int z);
void generatePlacements(
const ChunkPrototype& prototype, voxel* voxels, int x, int z
);
void generateBiomes(ChunkPrototype& prototype, int x, int z);
void generateHeightmap(ChunkPrototype& prototype, int x, int z);
@@ -81,6 +77,9 @@ class WorldGenerator {
void placeLine(const LinePlacement& line, int priority);
void generatePlacements(
const ChunkPrototype& prototype, voxel* voxels, int x, int z
);
void generateLine(
const ChunkPrototype& prototype,
const LinePlacement& placement,
@@ -113,7 +112,8 @@ class WorldGenerator {
void placeStructures(
const std::vector<Placement>& placements,
ChunkPrototype& prototype,
int x, int z);
int x, int z
);
public:
WorldGenerator(
const GeneratorDef& def,