mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
add heightmap-based test generation
This commit is contained in:
parent
95cf451cc8
commit
ae5671364a
18 changed files with 82 additions and 440 deletions
|
|
@ -6,22 +6,19 @@
|
|||
|
||||
struct voxel;
|
||||
class Content;
|
||||
class GeneratorDef;
|
||||
|
||||
class WorldGenerator {
|
||||
protected:
|
||||
blockid_t const idStone;
|
||||
blockid_t const idDirt;
|
||||
blockid_t const idGrassBlock;
|
||||
blockid_t const idSand;
|
||||
blockid_t const idWater;
|
||||
blockid_t const idWood;
|
||||
blockid_t const idLeaves;
|
||||
blockid_t const idGrass;
|
||||
blockid_t const idFlower;
|
||||
blockid_t const idBazalt;
|
||||
const GeneratorDef& def;
|
||||
const Content* content;
|
||||
public:
|
||||
WorldGenerator(const Content* content);
|
||||
WorldGenerator(
|
||||
const GeneratorDef& def,
|
||||
const Content* content
|
||||
);
|
||||
virtual ~WorldGenerator() = default;
|
||||
|
||||
virtual void generate(voxel* voxels, int x, int z, int seed) = 0;
|
||||
virtual void generate(voxel* voxels, int x, int z, int seed);
|
||||
|
||||
inline static std::string DEFAULT = "core:default";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue