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

This commit is contained in:
MihailRis 2026-08-21 21:54:50 +03:00
parent d3b2069144
commit aac9b850c1
2 changed files with 9 additions and 0 deletions

View file

@ -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

View file

@ -46,6 +46,9 @@ app.sleep_until(
-- Проверяет, загружен ли контент.
app.is_content_loaded() -> boolean
-- Возвращает текущую конфигурацию контента (список id паков в порядке загрузки)
app.get_content() -> table<string>
-- Загружает контент из конфига, нельзя использовать, если контент уже загружен
app.load_content()