diff options
author | kwolekr <kwolekr@minetest.net> | 2015-03-30 23:40:35 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-03-31 01:11:51 -0400 |
commit | ed10005d381580440558dc49277b4d350f081283 (patch) | |
tree | a1ac2b831d883f6c43193a1c2a55860bf7e0d6ed /src/mg_ore.h | |
parent | 6a48844eba16fb955ef4992bef539af66c595d0c (diff) | |
download | minetest-ed10005d381580440558dc49277b4d350f081283.tar.gz minetest-ed10005d381580440558dc49277b4d350f081283.tar.bz2 minetest-ed10005d381580440558dc49277b4d350f081283.zip |
GenElementManager: Pass opaque handles to Lua and rename to ObjDefManager
Add core.clear_registered_schematics() and refactor schematics somewhat
Diffstat (limited to 'src/mg_ore.h')
-rw-r--r-- | src/mg_ore.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mg_ore.h b/src/mg_ore.h index 67ca9a849..978b8ae3d 100644 --- a/src/mg_ore.h +++ b/src/mg_ore.h @@ -47,7 +47,7 @@ enum OreType { extern FlagDesc flagdesc_ore[]; -class Ore : public GenElement, public NodeResolver { +class Ore : public ObjDef, public NodeResolver { public: static const bool NEEDS_NOISE = false; @@ -112,14 +112,16 @@ public: v3s16 nmin, v3s16 nmax); }; -class OreManager : public GenElementManager { +class OreManager : public ObjDefManager { public: - static const char *ELEMENT_TITLE; - static const size_t ELEMENT_LIMIT = 0x10000; - OreManager(IGameDef *gamedef); ~OreManager() {} + const char *getObjectTitle() const + { + return "ore"; + } + Ore *create(int type) { switch (type) { |