mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
update doc/ru/** scripting-related docs
This commit is contained in:
parent
917f47542f
commit
c2cfe64b7e
5 changed files with 163 additions and 211 deletions
|
|
@ -77,12 +77,12 @@ static int l_world_exists(lua::State* L) {
|
|||
|
||||
static int l_world_is_day(lua::State* L) {
|
||||
auto daytime = level->getWorld()->getInfo().daytime;
|
||||
return lua::pushboolean(L, daytime >= 0.2 && daytime <= 0.8);
|
||||
return lua::pushboolean(L, daytime >= 0.333 && daytime <= 0.833);
|
||||
}
|
||||
|
||||
static int l_world_is_night(lua::State* L) {
|
||||
auto daytime = level->getWorld()->getInfo().daytime;
|
||||
return lua::pushboolean(L, daytime < 0.2 || daytime > 0.8);
|
||||
return lua::pushboolean(L, daytime < 0.333 || daytime > 0.833);
|
||||
}
|
||||
|
||||
const luaL_Reg worldlib[] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue