mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add heightmap-based test generation
This commit is contained in:
parent
95cf451cc8
commit
ae5671364a
18 changed files with 82 additions and 440 deletions
|
|
@ -698,9 +698,12 @@ public:
|
|||
lua::pushivec_stack(L, offset);
|
||||
lua::pushivec_stack(L, size);
|
||||
if (lua::call_nothrow(L, 4)) {
|
||||
return lua::touserdata<lua::LuaHeightmap>(L, -1)->getHeightmap();
|
||||
auto map = lua::touserdata<lua::LuaHeightmap>(L, -1)->getHeightmap();
|
||||
lua::pop(L, 2);
|
||||
return map;
|
||||
}
|
||||
}
|
||||
lua::pop(L);
|
||||
return std::make_shared<Heightmap>(size.x, size.y);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue