add world.get_generator

This commit is contained in:
MihailRis
2024-10-26 22:46:26 +03:00
parent 84ba063908
commit 7afdde5912
3 changed files with 48 additions and 28 deletions
+4
View File
@@ -1,6 +1,7 @@
# *world* library
```lua
-- Returns worlds information.
world.get_list() -> tables array {
-- world name
name: str,
@@ -27,6 +28,9 @@ world.get_total_time() -> number
-- Returns world seed.
world.get_seed() -> int
-- Returns generator name.
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
+3
View File
@@ -27,6 +27,9 @@ world.get_total_time() -> number
-- Возвращает зерно мира.
world.get_seed() -> int
-- Возвращает имя генератора.
world.get_generator() -> str
-- Проверяет существование мира по имени.
world.exists() -> bool