diff options
author | kwolekr <kwolekr@minetest.net> | 2013-07-08 15:19:22 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-07-08 15:19:48 -0400 |
commit | ce955f37ba9f431122ca3c46e5a7dac63ffd65ea (patch) | |
tree | 59785622b4848501fd26d42ebb554ccec20d9a42 /src/mapgen.h | |
parent | c813a3cc53f0ab4a39f07d0a017db7b7e3ef6fbc (diff) | |
download | minetest-ce955f37ba9f431122ca3c46e5a7dac63ffd65ea.tar.gz minetest-ce955f37ba9f431122ca3c46e5a7dac63ffd65ea.tar.bz2 minetest-ce955f37ba9f431122ca3c46e5a7dac63ffd65ea.zip |
Decoration: Handle facedir and wallmounted param2types with schematic rotation
Diffstat (limited to 'src/mapgen.h')
-rw-r--r-- | src/mapgen.h | 14 |
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); |