aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapgen.h')
-rw-r--r--src/mapgen.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/mapgen.h b/src/mapgen.h
index 2287445ee..b167978d7 100644
--- a/src/mapgen.h
+++ b/src/mapgen.h
@@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "irrlichttypes_extrabloated.h"
#include "util/container.h" // UniqueQueue
#include "gamedef.h"
+#include "nodedef.h"
#include "mapnode.h"
#include "noise.h"
#include "settings.h"
@@ -63,7 +64,6 @@ class EmergeManager;
class MapBlock;
class ManualMapVoxelManipulator;
class VoxelManipulator;
-class INodeDefManager;
struct BlockMakeData;
class VoxelArea;
class Map;
@@ -216,6 +216,8 @@ struct CutoffData {
class Decoration {
public:
+ INodeDefManager *ndef;
+
int mapseed;
std::string place_on_name;
content_t c_place_on;
@@ -262,14 +264,6 @@ public:
#define MTSCHEM_FILE_SIGNATURE 0x4d54534d // 'MTSM'
-enum Rotation {
- ROTATE_0,
- ROTATE_90,
- ROTATE_180,
- ROTATE_270,
- ROTATE_RAND,
-};
-
class DecoSchematic : public Decoration {
public:
std::string filename;
@@ -291,7 +285,7 @@ public:
virtual std::string getName();
void blitToVManip(v3s16 p, ManualMapVoxelManipulator *vm,
- int rot, bool force_placement);
+ Rotation rot, bool force_placement);
bool loadSchematicFile();
void saveSchematicFile(INodeDefManager *ndef);