mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
the final rename
This commit is contained in:
parent
f27a418dbe
commit
1627e21c1d
196 changed files with 836 additions and 815 deletions
29
src/voxels/WorldGenerator.hpp
Normal file
29
src/voxels/WorldGenerator.hpp
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#ifndef VOXELS_WORLDGENERATOR_HPP_
|
||||
#define VOXELS_WORLDGENERATOR_HPP_
|
||||
|
||||
#include "../typedefs.hpp"
|
||||
#include <string>
|
||||
|
||||
struct voxel;
|
||||
class Content;
|
||||
|
||||
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;
|
||||
public:
|
||||
WorldGenerator(const Content* content);
|
||||
virtual ~WorldGenerator() = default;
|
||||
|
||||
virtual void generate(voxel* voxels, int x, int z, int seed) = 0;
|
||||
};
|
||||
|
||||
#endif /* VOXELS_WORLDGENERATOR_HPP_ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue