mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
add dependency levels to content-packs.md
This commit is contained in:
parent
fc87e69e5c
commit
12d04b021c
2 changed files with 16 additions and 0 deletions
|
|
@ -22,6 +22,14 @@ Content-pack folder must contain file **package.json** with following contents:
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Dependency levels are indicated by prefixes in the name:
|
||||||
|
- '!' - required dependency
|
||||||
|
- '?' - optional dependency
|
||||||
|
- '~' - weak dependency
|
||||||
|
If prefix is not specified, '!' level will be used.
|
||||||
|
|
||||||
|
Example: '~randutil' - weak dependency 'randutil'.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,14 @@
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Уровни зависимостей указываются с помощью префиксов в имени:
|
||||||
|
- '!' - обязательная зависимость
|
||||||
|
- '?' - опциональная зависимость
|
||||||
|
- '~' - слабая зависимость
|
||||||
|
Отсутствие префикса интерпретируется как '!'.
|
||||||
|
|
||||||
|
Пример: '~randutil' - слабая зависимость 'randutil'.
|
||||||
|
|
||||||
Пример:
|
Пример:
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue