mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 13:31:49 +00:00
fix libworld docs
This commit is contained in:
parent
5ffc054d75
commit
8f37704530
2 changed files with 8 additions and 10 deletions
|
|
@ -36,14 +36,12 @@ world.get_seed() -> int
|
||||||
-- Returns generator name.
|
-- Returns generator name.
|
||||||
world.get_generator() -> str
|
world.get_generator() -> str
|
||||||
|
|
||||||
-- Proves that this is the current time during the day
|
|
||||||
-- from 0.333(8 am) to 0.833(8 pm).
|
|
||||||
world.is_day() -> boolean
|
|
||||||
|
|
||||||
-- Checks that it is the current time at night
|
|
||||||
-- from 0.833(8 pm) to 0.333(8 am).
|
|
||||||
world.is_night() -> bool
|
|
||||||
|
|
||||||
-- Checks the existence of a world by name.
|
-- Checks the existence of a world by name.
|
||||||
world.exists() -> bool
|
world.exists(name: str) -> bool
|
||||||
|
|
||||||
|
-- Checks if the current time is daytime. From 0.333(8am) to 0.833(8pm).
|
||||||
|
world.is_day() -> bool
|
||||||
|
|
||||||
|
-- Checks if the current time is nighttime. From 0.833(8pm) to 0.333(8am).
|
||||||
|
world.is_night() -> bool
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ world.get_seed() -> int
|
||||||
world.get_generator() -> str
|
world.get_generator() -> str
|
||||||
|
|
||||||
-- Проверяет существование мира по имени.
|
-- Проверяет существование мира по имени.
|
||||||
world.exists() -> bool
|
world.exists(name: str) -> bool
|
||||||
|
|
||||||
-- Проверяет является ли текущее время днём. От 0.333(8 утра) до 0.833(8 вечера).
|
-- Проверяет является ли текущее время днём. От 0.333(8 утра) до 0.833(8 вечера).
|
||||||
world.is_day() -> bool
|
world.is_day() -> bool
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue