mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-20 09:29:44 +00:00
update doc/*/scripting/builtins/libapp.md
This commit is contained in:
parent
5390541334
commit
e196086ec3
2 changed files with 4 additions and 2 deletions
|
|
@ -119,7 +119,8 @@ app.close_world(
|
|||
|
||||
```lua
|
||||
-- Returns the major and minor versions of the engine.
|
||||
app.get_version() -> int, int
|
||||
-- If a patch number is available, it also returns it.
|
||||
app.get_version() -> int, int, int | nil
|
||||
|
||||
-- Returns the value of a setting.
|
||||
-- Throws an exception if the setting does not exist.
|
||||
|
|
|
|||
|
|
@ -116,7 +116,8 @@ app.close_world(
|
|||
|
||||
```lua
|
||||
-- Возвращает мажорную и минорную версии движка.
|
||||
app.get_version() -> int, int
|
||||
-- При наличии номера патча возвращает и его.
|
||||
app.get_version() -> int, int, int | nil
|
||||
|
||||
-- Возвращает значение настройки.
|
||||
-- Бросает исключение, если настройки не существует.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue