mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
add fragment:place & add 'fragment.place' command
This commit is contained in:
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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue