diff options
author | kwolekr <kwolekr@minetest.net> | 2015-04-16 04:12:26 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-04-16 16:27:05 -0400 |
commit | 479f38973e13680d6a39d9c2a7f29fd330b67d41 (patch) | |
tree | c6719cf37bfbc44f98cc33b9b2693542b8fdd8cc /src/mg_decoration.h | |
parent | 0c634a97197d50f2ca58825f1b215d0407397ac6 (diff) | |
download | minetest-479f38973e13680d6a39d9c2a7f29fd330b67d41.tar.gz minetest-479f38973e13680d6a39d9c2a7f29fd330b67d41.tar.bz2 minetest-479f38973e13680d6a39d9c2a7f29fd330b67d41.zip |
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.
Diffstat (limited to 'src/mg_decoration.h')
-rw-r--r-- | src/mg_decoration.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mg_decoration.h b/src/mg_decoration.h index c92cfe4dc..180c248be 100644 --- a/src/mg_decoration.h +++ b/src/mg_decoration.h @@ -79,7 +79,7 @@ public: Decoration(); virtual ~Decoration(); - virtual void resolveNodeNames(NodeResolveInfo *nri); + virtual void resolveNodeNames(); size_t placeDeco(Mapgen *mg, u32 blockseed, v3s16 nmin, v3s16 nmax); //size_t placeCutoffs(Mapgen *mg, u32 blockseed, v3s16 nmin, v3s16 nmax); @@ -96,7 +96,7 @@ public: s16 deco_height_max; s16 nspawnby; - virtual void resolveNodeNames(NodeResolveInfo *nri); + virtual void resolveNodeNames(); bool canPlaceDecoration(MMVManip *vm, v3s16 p); virtual size_t generate(MMVManip *vm, PseudoRandom *pr, v3s16 p); |