mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update doc/*/scripting/builtins/libpack.md
This commit is contained in:
parent
8b0935d2b7
commit
fb4fa2f042
2 changed files with 12 additions and 0 deletions
|
|
@ -108,3 +108,9 @@ pack.assemble(packis: table) -> table
|
|||
```
|
||||
|
||||
Checks the configuration for correctness and adds dependencies, returning the complete configuration.
|
||||
|
||||
```lua
|
||||
pack.request_writeable(packid: str, callback: function(str))
|
||||
```
|
||||
|
||||
Request pack modification permission. New entry-point will be passed to the callback if confirmed.
|
||||
|
|
|
|||
|
|
@ -96,3 +96,9 @@ pack.assemble(packis: table) -> table
|
|||
```
|
||||
|
||||
Проверяет корректность конфигурации и добавляет зависимости, возвращая полную.
|
||||
|
||||
```lua
|
||||
pack.request_writeable(packid: str, callback: function(str))
|
||||
```
|
||||
|
||||
Запрашивает у пользователя право на модификацию пака. При подтвержении новая точка входа будет передана в callback.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue