Schematics: Refactor NodeResolver and add NodeResolveMethod
authorkwolekr <kwolekr@minetest.net>
Thu, 16 Apr 2015 08:12:26 +0000 (04:12 -0400)
committerkwolekr <kwolekr@minetest.net>
Thu, 16 Apr 2015 20:27:05 +0000 (16:27 -0400)
commit479f38973e13680d6a39d9c2a7f29fd330b67d41
treec6719cf37bfbc44f98cc33b9b2693542b8fdd8cc
parent0c634a97197d50f2ca58825f1b215d0407397ac6
Schematics: Refactor NodeResolver and add NodeResolveMethod

NodeResolver name lists now belong to the NodeResolver object instead of
the associated NodeDefManager.  In addition to minimizing unnecessary
abstraction and overhead, this move permits NodeResolvers to look up nodes
that they had previously set pending for resolution.  So far, this
functionality has been used in the case of schematics for
serialization/deserialization.
17 files changed:
doc/lua_api.txt
src/client.cpp
src/mg_biome.cpp
src/mg_biome.h
src/mg_decoration.cpp
src/mg_decoration.h
src/mg_ore.cpp
src/mg_ore.h
src/mg_schematic.cpp
src/mg_schematic.h
src/nodedef.cpp
src/nodedef.h
src/script/common/c_converter.cpp
src/script/common/c_converter.h
src/script/lua_api/l_mapgen.cpp
src/script/lua_api/l_mapgen.h
src/server.cpp