add dependency levels to content-packs.md

This commit is contained in:
MihailRis 2024-10-23 13:19:56 +03:00
parent 9b53def82a
commit 109cfbfceb
2 changed files with 16 additions and 0 deletions

View File

@ -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:
```json
{

View File

@ -22,6 +22,14 @@
}
```
Уровни зависимостей указываются с помощью префиксов в имени:
- '!' - обязательная зависимость
- '?' - опциональная зависимость
- '~' - слабая зависимость
Отсутствие префикса интерпретируется как '!'.
Пример: '~randutil' - слабая зависимость 'randutil'.
Пример:
```json
{