add placements priority
This commit is contained in:
@@ -118,11 +118,6 @@ struct Biome {
|
||||
BlocksLayers seaLayers;
|
||||
};
|
||||
|
||||
struct PrototypePlacements {
|
||||
std::vector<StructurePlacement> structs {};
|
||||
std::vector<LinePlacement> lines {};
|
||||
};
|
||||
|
||||
/// @brief Generator behaviour and settings interface
|
||||
class GeneratorScript {
|
||||
public:
|
||||
@@ -154,7 +149,7 @@ public:
|
||||
uint bpd
|
||||
) = 0;
|
||||
|
||||
virtual PrototypePlacements placeStructuresWide(
|
||||
virtual std::vector<Placement> placeStructuresWide(
|
||||
const glm::ivec2& offset,
|
||||
const glm::ivec2& size,
|
||||
uint64_t seed,
|
||||
@@ -169,7 +164,7 @@ public:
|
||||
/// @param heightmap area heightmap
|
||||
/// @param chunkHeight chunk height to use as heights multiplier
|
||||
/// @return structure & line placements
|
||||
virtual PrototypePlacements placeStructures(
|
||||
virtual std::vector<Placement> placeStructures(
|
||||
const glm::ivec2& offset, const glm::ivec2& size, uint64_t seed,
|
||||
const std::shared_ptr<Heightmap>& heightmap, uint chunkHeight) = 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user