1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Decoration: Handle facedir and wallmounted param2types with schematic rotation

This commit is contained in:
kwolekr 2013-07-08 15:19:22 -04:00
parent c813a3cc53
commit ce955f37ba
4 changed files with 50 additions and 12 deletions

View file

@ -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);