mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
update doc/*/scripting/builtins/libapp.md
This commit is contained in:
parent
d3b2069144
commit
aac9b850c1
2 changed files with 9 additions and 0 deletions
|
|
@ -80,6 +80,12 @@ app.is_content_loaded() -> bool
|
|||
|
||||
Checks if content is loaded.
|
||||
|
||||
```lua
|
||||
app.get_content() -> table<string>
|
||||
```
|
||||
|
||||
Returns the current content configuration (list of packs IDs in loading order)
|
||||
|
||||
```lua
|
||||
app.new_world(
|
||||
-- world name, empty string will create a nameless world
|
||||
|
|
|
|||
|
|
@ -46,6 +46,9 @@ app.sleep_until(
|
|||
-- Проверяет, загружен ли контент.
|
||||
app.is_content_loaded() -> boolean
|
||||
|
||||
-- Возвращает текущую конфигурацию контента (список id паков в порядке загрузки)
|
||||
app.get_content() -> table<string>
|
||||
|
||||
-- Загружает контент из конфига, нельзя использовать, если контент уже загружен
|
||||
app.load_content()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue