More world generators support

This commit is contained in:
Onran 2024-02-21 11:54:10 +09:00 • committed by GitHub
parent 399bd9c362
commit 9cc2f93cfd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 209 additions and 30 deletions

View file

@ -7,6 +7,7 @@ struct voxel;
class Content;
class WorldGenerator {
protected:
blockid_t const idStone;
blockid_t const idDirt;
blockid_t const idGrassBlock;
@ -19,7 +20,7 @@ class WorldGenerator {
blockid_t const idBazalt;
public:
WorldGenerator(const Content* content);
void generate(voxel* voxels, int x, int z, int seed);
virtual void generate(voxel* voxels, int x, int z, int seed);
};
#endif /* VOXELS_WORLDGENERATOR_H_ */
#endif /* VOXELS_WORLDGENERATOR_H_ */