diff options
author | kwolekr <kwolekr@minetest.net> | 2014-12-17 03:20:17 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2014-12-27 02:12:21 -0500 |
commit | b67f37f27ea7d89b2098fa9fcc2533fa1091e695 (patch) | |
tree | b97d7c98fc29677dfc57fa8f8af4332ff9d0c87c /src/mg_ore.h | |
parent | 3ea5ed4ffe600fa11a3deb3de58d5bd5bbb65ee1 (diff) | |
download | minetest-b67f37f27ea7d89b2098fa9fcc2533fa1091e695.tar.gz minetest-b67f37f27ea7d89b2098fa9fcc2533fa1091e695.tar.bz2 minetest-b67f37f27ea7d89b2098fa9fcc2533fa1091e695.zip |
Redefine NodeResolver interface and replace with callback mechanism
Diffstat (limited to 'src/mg_ore.h')
-rw-r--r-- | src/mg_ore.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mg_ore.h b/src/mg_ore.h index 585d58f37..3b413674e 100644 --- a/src/mg_ore.h +++ b/src/mg_ore.h @@ -54,7 +54,7 @@ enum OreType { extern FlagDesc flagdesc_ore[]; -class Ore : public GenElement { +class Ore : public GenElement, public NodeResolver { public: static const bool NEEDS_NOISE = false; @@ -72,6 +72,9 @@ public: Noise *noise; Ore(); + virtual ~Ore(); + + virtual void resolveNodeNames(NodeResolveInfo *nri); size_t placeOre(Mapgen *mg, u32 blockseed, v3s16 nmin, v3s16 nmax); virtual void generate(ManualMapVoxelManipulator *vm, int seed, |