mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Schematics: Add core.place_schematic_on_vmanip API
Fix memory leak in minetest.place_schematic Slightly refactor Schematic code
This commit is contained in:
parent
732cabee19
commit
1384108f8c
6 changed files with 112 additions and 19 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue