mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
fix libpack.md formatting
This commit is contained in:
parent
115f5b41d2
commit
ef203ccbdc
2 changed files with 11 additions and 9 deletions
|
|
@ -78,14 +78,14 @@ Returns the id of all base packages (non-removeable)
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
pack.get_info(packid: str) -> {
|
pack.get_info(packid: str) -> {
|
||||||
id: str,
|
id: str,
|
||||||
title: str,
|
title: str,
|
||||||
creator: str,
|
creator: str,
|
||||||
description: str,
|
description: str,
|
||||||
version: str,
|
version: str,
|
||||||
path: str,
|
path: str,
|
||||||
icon: str, -- not available in headless mode
|
icon: str, -- not available in headless mode
|
||||||
dependencies: optional strings array
|
dependencies: optional strings array
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -95,6 +95,7 @@ Returns information about the pack (not necessarily installed).
|
||||||
- `!` - required
|
- `!` - required
|
||||||
- `?` - optional
|
- `?` - optional
|
||||||
- `~` - weak
|
- `~` - weak
|
||||||
|
|
||||||
for example `!teal`
|
for example `!teal`
|
||||||
|
|
||||||
To obtain information about multiple packs, use table of ids to avoid re-scanning:one
|
To obtain information about multiple packs, use table of ids to avoid re-scanning:one
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,7 @@ pack.get_info(packid: string) -> {
|
||||||
- `!` - required
|
- `!` - required
|
||||||
- `?` - optional
|
- `?` - optional
|
||||||
- `~` - weak
|
- `~` - weak
|
||||||
|
|
||||||
например `!teal`
|
например `!teal`
|
||||||
|
|
||||||
Для получения информации о нескольких паках используйте таблицу id, чтобы не
|
Для получения информации о нескольких паках используйте таблицу id, чтобы не
|
||||||
|
|
@ -101,4 +102,4 @@ pack.assemble(packids: table<string>) -> table<string>
|
||||||
pack.request_writeable(packid: string, callback: function(string))
|
pack.request_writeable(packid: string, callback: function(string))
|
||||||
```
|
```
|
||||||
|
|
||||||
Запрашивает у пользователя право на модификацию пака. При подтвержении новая точка входа будет передана в callback.
|
Запрашивает у пользователя право на модификацию пака. При подтвержении новая точка входа будет передана в callback.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue