add heightmap-based test generation

This commit is contained in:
MihailRis
2024-08-14 18:44:32 +03:00
parent 95cf451cc8
commit ae5671364a
18 changed files with 82 additions and 440 deletions
+4 -1
View File
@@ -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);
}
};