mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add biome 'parameters' field
This commit is contained in:
parent
efa27496ab
commit
c3831afd19
4 changed files with 48 additions and 5 deletions
|
|
@ -566,7 +566,7 @@ namespace lua {
|
|||
) {
|
||||
requirefield(L, name, idx);
|
||||
auto value = require_string(L, -1);
|
||||
lua::pop(L);
|
||||
pop(L);
|
||||
return value;
|
||||
}
|
||||
|
||||
|
|
@ -575,7 +575,16 @@ namespace lua {
|
|||
) {
|
||||
requirefield(L, name, idx);
|
||||
auto value = tointeger(L, -1);
|
||||
lua::pop(L);
|
||||
pop(L);
|
||||
return value;
|
||||
}
|
||||
|
||||
inline Number require_number_field(
|
||||
lua::State* L, const std::string& name, int idx=-1
|
||||
) {
|
||||
requirefield(L, name, idx);
|
||||
auto value = tonumber(L, -1);
|
||||
pop(L);
|
||||
return value;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue