mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-22 10:54:19 -04:00
Added unit promotions json schema
This commit is contained in:
parent
4d39c80c93
commit
637a2a8208
@ -60,6 +60,12 @@ Tada! Now Android Studio will recognize all Buildings.json files as belonging to
|
||||
],
|
||||
"url": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/unitTypes.json"
|
||||
},
|
||||
{
|
||||
"fileMatch": [
|
||||
"*/UnitPromotions.json"
|
||||
],
|
||||
"url": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/unitPromotions.json"
|
||||
},
|
||||
{
|
||||
"fileMatch": [
|
||||
"*/TileResources.json"
|
||||
|
29
docs/Modders/schemas/unitPromotions.json
Normal file
29
docs/Modders/schemas/unitPromotions.json
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": { "type": "string" },
|
||||
"prerequisites": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
|
||||
"unitTypes": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
|
||||
|
||||
"row": { "type": "integer", "minimum": 0,
|
||||
"description": "Used as **column** hint in the promotion picker screen. Not a direct position, it is used to sort before an automatic distribution."
|
||||
},
|
||||
"column": { "type": "integer", "minimum": 0,
|
||||
"description": "Used as **row** hint in the promotion picker screen. Not a direct position, it is used to sort before an automatic distribution."
|
||||
},
|
||||
|
||||
"uniques": { "$ref": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/uniques.json" },
|
||||
"civilopediaText": { "$ref": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/civilopediaText.json" },
|
||||
|
||||
"outerColor": { "$ref": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/color.json" },
|
||||
"innerColor": { "$ref": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/color.json" }
|
||||
},
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user