1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Cpp11 patchset 11: continue working on constructor style migration (#6004)

This commit is contained in:
Loïc Blot 2017-06-18 19:55:15 +02:00 committed by GitHub
parent 8f7785771b
commit 4faaadc8d5
39 changed files with 200 additions and 396 deletions

View file

@ -64,8 +64,8 @@ struct CutoffData {
class Decoration : public ObjDef, public NodeResolver {
public:
Decoration();
virtual ~Decoration();
Decoration() {};
virtual ~Decoration() {};
virtual void resolveNodeNames();
@ -76,13 +76,13 @@ public:
virtual size_t generate(MMVManip *vm, PcgRandom *pr, v3s16 p) = 0;
virtual int getHeight() = 0;
u32 flags;
int mapseed;
u32 flags = 0;
int mapseed = 0;
std::vector<content_t> c_place_on;
s16 sidelen;
s16 sidelen = 1;
s16 y_min;
s16 y_max;
float fill_ratio;
float fill_ratio = 0.0f;
NoiseParams np;
std::vector<content_t> c_spawnby;
s16 nspawnby;
@ -104,13 +104,13 @@ public:
class DecoSchematic : public Decoration {
public:
DecoSchematic();
DecoSchematic() {};
virtual size_t generate(MMVManip *vm, PcgRandom *pr, v3s16 p);
virtual int getHeight();
Rotation rotation;
Schematic *schematic;
Schematic *schematic = nullptr;
};