mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update doc/*/scripting/builtins/libapp.md
This commit is contained in:
parent
ca6096c397
commit
9afe265094
2 changed files with 4 additions and 0 deletions
|
|
@ -7,6 +7,8 @@ The script/test name without the path and extension is available as `app.script`
|
|||
local filename = "script:"..app.script..".lua"
|
||||
```
|
||||
|
||||
Since the control script may not belong to any of the packs, it does not belongs to its own package and has its own global namespace in which all global functions and tables are available, as well as the `app` library.
|
||||
|
||||
## Functions
|
||||
|
||||
```lua
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@
|
|||
local filename = "script:"..app.script..".lua"
|
||||
```
|
||||
|
||||
Так как управляющий сценарий может не принадлежать ни одному из паков, он не относиться к своему паку и имеет собственное пространство имён, в котором доступны все глобальные функции и таблицы, а также библиотека `app`.
|
||||
|
||||
## Функции
|
||||
|
||||
```lua
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue