add fragment:place & add 'fragment.place' command

This commit is contained in:
MihailRis
2024-10-28 10:03:08 +03:00
parent d8c3940451
commit 7819a5cd68
5 changed files with 58 additions and 0 deletions
@@ -45,6 +45,7 @@ static int l_load_fragment(lua::State* L) {
auto fragment = std::make_shared<VoxelFragment>();
fragment->deserialize(map);
fragment->prepare(*content);
return lua::newuserdata<lua::LuaVoxelFragment>(L, std::move(fragment));
}