move WorldGenerator to world/generator

This commit is contained in:
MihailRis
2024-08-16 18:39:44 +03:00
parent 33a73a0014
commit 30925df319
6 changed files with 6 additions and 7 deletions
+24
View File
@@ -0,0 +1,24 @@
#pragma once
#include <string>
#include "typedefs.hpp"
struct voxel;
class Content;
struct GeneratorDef;
class WorldGenerator {
const GeneratorDef& def;
const Content* content;
public:
WorldGenerator(
const GeneratorDef& def,
const Content* content
);
virtual ~WorldGenerator() = default;
virtual void generate(voxel* voxels, int x, int z, int seed);
inline static std::string DEFAULT = "core:default";
};