diff options
Diffstat (limited to 'src/mapgen.h')
-rw-r--r-- | src/mapgen.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mapgen.h b/src/mapgen.h index 9a8b99c4a..4ed81b99b 100644 --- a/src/mapgen.h +++ b/src/mapgen.h @@ -258,6 +258,14 @@ public: virtual std::string getName(); }; +enum Rotation { + ROTATE_0, + ROTATE_90, + ROTATE_180, + ROTATE_270, + ROTATE_RAND, +}; + class DecoSchematic : public Decoration { public: std::string filename; @@ -266,6 +274,7 @@ public: std::vector<content_t> c_nodes; u32 flags; + Rotation rotation; v3s16 size; MapNode *schematic; @@ -277,6 +286,9 @@ public: virtual int getHeight(); virtual std::string getName(); + void blitToVManip(v3s16 p, ManualMapVoxelManipulator *vm, + int rot, bool force_placement); + bool loadSchematicFile(); void saveSchematicFile(INodeDefManager *ndef); |