From dd6d1afd8e0ded779fd004f4e83888985cba2102 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Mon, 1 Jul 2013 18:04:17 -0400 Subject: Decoration: Add schematic rotation support --- src/mapgen.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/mapgen.h') 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 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); -- cgit v1.2.3