update doc/*/scripting/builtins/libapp.md
This commit is contained in:
parent
ca6096c397
commit
9afe265094
@ -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…
x
Reference in New Issue
Block a user