diff options
author | kwolekr <kwolekr@minetest.net> | 2015-11-04 03:33:12 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-11-05 01:18:32 -0500 |
commit | 1384108f8c32f309852c1d1665a613f2a3e3fcc2 (patch) | |
tree | a5a2c9295db4d31ed1e17ec5845a24b54a911ef0 /src/mg_schematic.h | |
parent | 732cabee193c101fb59c9f3a6c181b32d77fe37d (diff) | |
download | minetest-1384108f8c32f309852c1d1665a613f2a3e3fcc2.tar.gz minetest-1384108f8c32f309852c1d1665a613f2a3e3fcc2.tar.bz2 minetest-1384108f8c32f309852c1d1665a613f2a3e3fcc2.zip |
Schematics: Add core.place_schematic_on_vmanip API
Fix memory leak in minetest.place_schematic
Slightly refactor Schematic code
Diffstat (limited to 'src/mg_schematic.h')
-rw-r--r-- | src/mg_schematic.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mg_schematic.h b/src/mg_schematic.h index 5c732648e..da8859540 100644 --- a/src/mg_schematic.h +++ b/src/mg_schematic.h @@ -106,8 +106,9 @@ public: bool serializeToLua(std::ostream *os, const std::vector<std::string> &names, bool use_comments, u32 indent_spaces); - void blitToVManip(v3s16 p, MMVManip *vm, Rotation rot, bool force_place); - void placeStructure(Map *map, v3s16 p, u32 flags, Rotation rot, bool force_place); + void blitToVManip(MMVManip *vm, v3s16 p, Rotation rot, bool force_place); + bool placeOnVManip(MMVManip *vm, v3s16 p, u32 flags, Rotation rot, bool force_place); + void placeOnMap(Map *map, v3s16 p, u32 flags, Rotation rot, bool force_place); void applyProbabilities(v3s16 p0, std::vector<std::pair<v3s16, u8> > *plist, |