mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
More world generators support
This commit is contained in:
parent
399bd9c362
commit
9cc2f93cfd
9 changed files with 209 additions and 30 deletions
18
src/voxels/FlatWorldGenerator.h
Normal file
18
src/voxels/FlatWorldGenerator.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#ifndef VOXELS_FLATWORLDGENERATOR_H_
|
||||
#define VOXELS_FLATWORLDGENERATOR_H_
|
||||
|
||||
#include "../typedefs.h"
|
||||
#include "../voxels/WorldGenerator.h"
|
||||
|
||||
struct voxel;
|
||||
class Content;
|
||||
|
||||
class FlatWorldGenerator : WorldGenerator {
|
||||
public:
|
||||
|
||||
FlatWorldGenerator(const Content* content) : WorldGenerator(content) {}
|
||||
|
||||
void generate(voxel* voxels, int x, int z, int seed) override;
|
||||
};
|
||||
|
||||
#endif /* VOXELS_FLATWORLDGENERATOR_H_ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue