summaryrefslogtreecommitdiff
path: root/src/mg_ore.h
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-04-20 20:25:33 -0400
committerkwolekr <kwolekr@minetest.net>2015-04-20 20:25:33 -0400
commit46a2c1f167f76b1ceb0164e9028b67eb6bf76e79 (patch)
treeb9706af6c1d9631e2914128f8218ad6f6a6ee39b /src/mg_ore.h
parenta443a13a9d77d3826947a55dd3bdc684d7bb7ed8 (diff)
downloadminetest-46a2c1f167f76b1ceb0164e9028b67eb6bf76e79.tar.gz
minetest-46a2c1f167f76b1ceb0164e9028b67eb6bf76e79.tar.bz2
minetest-46a2c1f167f76b1ceb0164e9028b67eb6bf76e79.zip
Ore: Add biomes parameter
Diffstat (limited to 'src/mg_ore.h')
-rw-r--r--src/mg_ore.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mg_ore.h b/src/mg_ore.h
index e4af435f7..cff1622fb 100644
--- a/src/mg_ore.h
+++ b/src/mg_ore.h
@@ -63,6 +63,7 @@ public:
float nthresh; // threshhold for noise at which an ore is placed
NoiseParams np; // noise for distribution of clusters (NULL for uniform scattering)
Noise *noise;
+ std::set<u8> biomes;
Ore();
virtual ~Ore();
@@ -71,7 +72,7 @@ public:
size_t placeOre(Mapgen *mg, u32 blockseed, v3s16 nmin, v3s16 nmax);
virtual void generate(MMVManip *vm, int mapseed, u32 blockseed,
- v3s16 nmin, v3s16 nmax) = 0;
+ v3s16 nmin, v3s16 nmax, u8 *biomemap) = 0;
};
class OreScatter : public Ore {
@@ -79,7 +80,7 @@ public:
static const bool NEEDS_NOISE = false;
virtual void generate(MMVManip *vm, int mapseed, u32 blockseed,
- v3s16 nmin, v3s16 nmax);
+ v3s16 nmin, v3s16 nmax, u8 *biomemap);
};
class OreSheet : public Ore {
@@ -87,7 +88,7 @@ public:
static const bool NEEDS_NOISE = true;
virtual void generate(MMVManip *vm, int mapseed, u32 blockseed,
- v3s16 nmin, v3s16 nmax);
+ v3s16 nmin, v3s16 nmax, u8 *biomemap);
};
class OreBlob : public Ore {
@@ -95,7 +96,7 @@ public:
static const bool NEEDS_NOISE = true;
virtual void generate(MMVManip *vm, int mapseed, u32 blockseed,
- v3s16 nmin, v3s16 nmax);
+ v3s16 nmin, v3s16 nmax, u8 *biomemap);
};
class OreVein : public Ore {
@@ -109,7 +110,7 @@ public:
virtual ~OreVein();
virtual void generate(MMVManip *vm, int mapseed, u32 blockseed,
- v3s16 nmin, v3s16 nmax);
+ v3s16 nmin, v3s16 nmax, u8 *biomemap);
};
class OreManager : public ObjDefManager {