update doc/*/scripting/builtins/libapp.md
This commit is contained in:
parent
01b4b6f19a
commit
3266204c0e
@ -77,12 +77,14 @@ Checks if content is loaded.
|
||||
|
||||
```lua
|
||||
app.new_world(
|
||||
-- world name
|
||||
-- world name, empty string will create a nameless world
|
||||
name: str,
|
||||
-- generation seed
|
||||
seed: str,
|
||||
-- generator name
|
||||
generator: str
|
||||
-- local player id
|
||||
[optional] local_player: int=0
|
||||
)
|
||||
```
|
||||
|
||||
|
||||
@ -77,12 +77,14 @@ app.is_content_loaded() -> bool
|
||||
|
||||
```lua
|
||||
app.new_world(
|
||||
-- название мира
|
||||
-- название мира, пустая строка приведёт к созданию безымянного мира
|
||||
name: str,
|
||||
-- зерно генерации
|
||||
seed: str,
|
||||
-- название генератора
|
||||
generator: str
|
||||
-- id локального игрока
|
||||
[опционально] local_player: int=0
|
||||
)
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user