update doc/*/scripting/builtins/libapp.md

This commit is contained in:
MihailRis 2025-01-17 19:24:07 +03:00
parent 01b4b6f19a
commit 3266204c0e
2 changed files with 6 additions and 2 deletions

View File

@ -77,12 +77,14 @@ Checks if content is loaded.
```lua ```lua
app.new_world( app.new_world(
-- world name -- world name, empty string will create a nameless world
name: str, name: str,
-- generation seed -- generation seed
seed: str, seed: str,
-- generator name -- generator name
generator: str generator: str
-- local player id
[optional] local_player: int=0
) )
``` ```

View File

@ -77,12 +77,14 @@ app.is_content_loaded() -> bool
```lua ```lua
app.new_world( app.new_world(
-- название мира -- название мира, пустая строка приведёт к созданию безымянного мира
name: str, name: str,
-- зерно генерации -- зерно генерации
seed: str, seed: str,
-- название генератора -- название генератора
generator: str generator: str
-- id локального игрока
[опционально] local_player: int=0
) )
``` ```