From e1ff33302f1aa01ac9023574c9ed6b7e91edae7b Mon Sep 17 00:00:00 2001 From: Sebastien Benard Date: Fri, 22 Sep 2023 11:22:09 +0200 Subject: [PATCH] Docs --- docs/JSON_DOC.md | 2 +- docs/JSON_SCHEMA.json | 13 +++++++++++++ docs/MINIMAL_JSON_SCHEMA.json | 13 +++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/docs/JSON_DOC.md b/docs/JSON_DOC.md index fbed8859f..94eac0e26 100644 --- a/docs/JSON_DOC.md +++ b/docs/JSON_DOC.md @@ -224,7 +224,7 @@ Value | Type | Description `pxOffsetY`
![Generic badge](https://img.shields.io/badge/Added_0.5.0-gray.svg) | Int | Y offset of the layer, in pixels (IMPORTANT: this should be added to the `LayerInstance` optional offset) `tilesetDefUid`
Only *Tile layers, Auto-layers*
![Generic badge](https://img.shields.io/badge/Changed_1.0.0-gray.svg) | Int *(can be `null`)* | Reference to the default Tileset UID being used by this layer definition.
**WARNING**: some layer *instances* might use a different tileset. So most of the time, you should probably use the `__tilesetDefUid` value found in layer instances.
Note: since version 1.0.0, the old `autoTilesetDefUid` was removed and merged into this value. `uid` | Int | Unique Int identifier -`autoRuleGroups`
Only *Auto-layers*
*Only used by editor* | Array of Object | Contains all the auto-layer rule definitions.
This array contains objects with the following fields:
+`autoRuleGroups`
Only *Auto-layers*
*Only used by editor* | Array of Object | Contains all the auto-layer rule definitions.
This array contains objects with the following fields:
`canSelectWhenInactive`
*Only used by editor*
![Generic badge](https://img.shields.io/badge/Added_1.1.4-gray.svg) | Bool | Allow editor selections when the layer is not currently active. `doc`
*Only used by editor*
![Generic badge](https://img.shields.io/badge/Added_1.2.5-gray.svg) | String *(can be `null`)* | User defined documentation for this element to provide help/tips to level designers. `excludedTags`
Only *Entity layer*
*Only used by editor*
![Generic badge](https://img.shields.io/badge/Added_0.8.0-gray.svg) | Array of String | An array of tags to forbid some Entities in this layer diff --git a/docs/JSON_SCHEMA.json b/docs/JSON_SCHEMA.json index 67ff192a1..6ba172652 100644 --- a/docs/JSON_SCHEMA.json +++ b/docs/JSON_SCHEMA.json @@ -1593,6 +1593,19 @@ "boolean" ] }, + "icon": { + "description": "", + "oneOf": [ + { + "type": [ + "null" + ] + }, + { + "$ref": "#/otherTypes/TilesetRect" + } + ] + }, "usesWizard": { "description": "", "type": [ diff --git a/docs/MINIMAL_JSON_SCHEMA.json b/docs/MINIMAL_JSON_SCHEMA.json index 2f8fdbe14..d859e6db1 100644 --- a/docs/MINIMAL_JSON_SCHEMA.json +++ b/docs/MINIMAL_JSON_SCHEMA.json @@ -727,6 +727,19 @@ "boolean" ] }, + "icon": { + "description": "", + "oneOf": [ + { + "type": [ + "null" + ] + }, + { + "$ref": "#/otherTypes/TilesetRect" + } + ] + }, "usesWizard": { "description": "", "type": [