Skip to content

Commit

Permalink
feat: document download object
Browse files Browse the repository at this point in the history
  • Loading branch information
qixils committed Nov 4, 2023
1 parent c7554e3 commit 8735054
Showing 1 changed file with 29 additions and 23 deletions.
52 changes: 29 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,21 @@ asset and someone else may add it for you.

The following properties are available for all assets.

| Property | Description | Required? |
|--------------------|-------------------------------------------------------------------------------------------------|:---------:|
| `type` | The type of the asset. Must be `mappack`, `tileset`, `music`, `sound`, `character`, or `enemy`. ||
| `name` | The short name of the asset. Must be \[1,17] characters long. ||
| `long_name` | The long name of the asset. ||
| `description` | A short description of the asset. Must be at most three lines with 17 characters per line. ||
| `long_description` | A long description of the asset. ||
| `version` | The version of the asset in semantic versioning format. ||
| `author` | The author of the asset. Must be \[1,14] characters long. ||
| `license` | The license of the asset. Should be an [SPDX identifier](https://spdx.org/licenses/). ||
| `download` | The direct download link of the asset. ||
| `released` | The date the asset was released. YYYY-MM-DD format. ||
| `updated` | The date the asset was last updated. YYYY-MM-DD format. Defaults to the release date. ||
| `icon` | The direct download link to the asset's icon. ||
| `filename` | The filename of the asset. ||
| `homepage` | The link to the homepage of the asset. ||
| Property | Description | Required? |
|--------------------|-------------------------------------------------------------------------------------------------|:-------------------:|
| `type` | The type of the asset. Must be `mappack`, `tileset`, `music`, `sound`, `character`, or `enemy`. ||
| `name` | The short name of the asset. Must be \[1,17] characters long. ||
| `long_name` | The long name of the asset. ||
| `description` | A short description of the asset. Must be at most three lines with 17 characters per line. ||
| `long_description` | A long description of the asset. ||
| `version` | The version of the asset in semantic versioning format. ||
| `author` | The author of the asset. Must be \[1,14] characters long. ||
| `license` | The license of the asset. Should be an [SPDX identifier](https://spdx.org/licenses/). ||
| `download` | The data for this asset's download. See [Download Schema](#download-schema). | If homepage is null |
| `released` | The date the asset was released. YYYY-MM-DD format. ||
| `updated` | The date the asset was last updated. YYYY-MM-DD format. Defaults to the release date. ||
| `icon` | The direct download link to the asset's icon. ||
| `homepage` | The link to the homepage of the asset. | If download is null |

### Game-Specific Asset Schema

Expand All @@ -40,17 +39,24 @@ This currently includes mappacks, tilesets, characters, and enemies.
|----------------|-------------------------------------------------------------------------------------------------|:---------:|
| `game_version` | The version of the game this asset is tied to. See [Game Version Schema](#game-version-schema). ||

#### Game Version Schema

| Property | Description | Required? |
|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------:|
| `derivative` | A list of which derivative(s) of the game this asset was created for. Items must be `1.6`, `SE`, `AE`, or `CE`. ||
| `ranges` | A list of version ranges this asset is compatible with. The components of a version range separated by a space are AND'd, while the components separated into different items in the array are OR'd. ||

### Mappack-Specific Asset Schema

The following additional properties are available for mappacks.

| Property | Description | Required? |
|--------------|----------------------------------------------------------|:---------:|
| `background` | The level to show in the background of the title screen. ||

## Download Schema

| Property | Description | Required? |
|------------|----------------------------------------|:---------:|
| `url` | The direct download link to the asset. ||
| `filename` | The filename of the asset. ||

## Game Version Schema

| Property | Description | Required? |
|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------:|
| `derivative` | A list of which derivative(s) of the game this asset was created for. Items must be `1.6`, `SE`, `AE`, or `CE`. ||
| `ranges` | A list of version ranges this asset is compatible with. The components of a version range separated by a space are AND'd, while the components separated into different items in the array are OR'd. ||

0 comments on commit 8735054

Please sign in to comment.