2021-06-23 22:06:21 +02:00
|
|
|
# Addon Object
|
|
|
|
|
|
|
|
``` json
|
|
|
|
{
|
2021-07-18 12:32:57 +02:00
|
|
|
"addonscript": {},
|
|
|
|
"id": "myaddon",
|
|
|
|
"versions": [],
|
|
|
|
"repositories": [],
|
|
|
|
"index": {},
|
|
|
|
"flags": {},
|
|
|
|
"meta": {}
|
2021-06-23 22:06:21 +02:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Required properties
|
|
|
|
|
|
|
|
### addonscript
|
|
|
|
|
|
|
|
This is an [AddonScript object](addonscript.md) containing information about the version of AddonScript used in this file.
|
|
|
|
|
|
|
|
### id
|
|
|
|
|
2021-07-18 12:32:57 +02:00
|
|
|
This is the ID of your addon. It should only contain **lowercase letters, numbers and dashes**.
|
2021-06-23 22:06:21 +02:00
|
|
|
|
|
|
|
## Optional properties
|
|
|
|
|
|
|
|
### versions
|
|
|
|
|
|
|
|
This is an array of [version objects](version.md). It is possible to define multiple versions of the addon in one AddonScript file,
|
2021-07-18 12:32:57 +02:00
|
|
|
but in the most cases there should be just one version per file. Athough this property is optional, as you can define versions
|
2021-06-23 22:06:21 +02:00
|
|
|
in the [index](index.md), it can be used to define a list of versions, which can be found in the index.
|
|
|
|
|
|
|
|
### repositories
|
|
|
|
|
2021-07-18 12:32:57 +02:00
|
|
|
This is an array of [repository objects](repository.md). Each repository object defines one repository from which files or
|
2021-06-23 22:06:21 +02:00
|
|
|
addons can be retrieved.
|
|
|
|
|
|
|
|
### index
|
|
|
|
|
2021-07-18 12:32:57 +02:00
|
|
|
This is an [index object](index.md) which includes links to other versions of this addon, or to other related addons.
|
2021-06-23 22:06:21 +02:00
|
|
|
|
|
|
|
### flags
|
|
|
|
|
|
|
|
Not yet specified
|
|
|
|
|
|
|
|
### meta
|
|
|
|
|
|
|
|
This is a [meta object](meta.md).
|