mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
remove generator script load_structures function
This commit is contained in:
parent
806ed4b155
commit
983a24bd05
4 changed files with 0 additions and 36 deletions
|
|
@ -123,9 +123,6 @@ class GeneratorScript {
|
|||
public:
|
||||
virtual ~GeneratorScript() = default;
|
||||
|
||||
/// @brief Load all structures
|
||||
virtual std::vector<std::shared_ptr<VoxelFragment>> loadStructures() = 0;
|
||||
|
||||
/// @brief Generates a heightmap with values in range 0..1
|
||||
/// @param offset position of the heightmap in the world
|
||||
/// @param size size of the heightmap
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@ WorldGenerator::WorldGenerator(
|
|||
surroundMap.setLevelCallback(4, [this](int const x, int const z) {
|
||||
generateStructures(requirePrototype(x, z), x, z);
|
||||
});
|
||||
|
||||
for (int i = 0; i < def.structures.size(); i++) {
|
||||
// pre-calculate rotated structure variants
|
||||
def.structures[i]->fragments[0]->prepare(*content);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue