mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
Added units.json and separate schemas for uniques and civilopediaText, for sharing
This commit is contained in:
parent
ae18b6d7ad
commit
8678e4eeda
@ -56,19 +56,6 @@
|
|||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"stats": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"production": { "type": "number" },
|
|
||||||
"food": { "type": "number" },
|
|
||||||
"gold": { "type": "number" },
|
|
||||||
"science": { "type": "number" },
|
|
||||||
"culture": { "type": "number" },
|
|
||||||
"happiness": { "type": "number" },
|
|
||||||
"faith": { "type": "number" }
|
|
||||||
},
|
|
||||||
"additionalProperties": false
|
|
||||||
},
|
|
||||||
"civilopediaText": {
|
"civilopediaText": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
19
docs/Modders/schemas/civilopediaText.json
Normal file
19
docs/Modders/schemas/civilopediaText.json
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"text": { "type": "string" },
|
||||||
|
"link": { "type": "string" },
|
||||||
|
"icon": { "type": "string" },
|
||||||
|
"extraImage": { "type": "string" },
|
||||||
|
"imageSize": { "type": "number" },
|
||||||
|
"size": { "type": "number" },
|
||||||
|
"header": { "type": "number" },
|
||||||
|
"indent": { "type": "number" },
|
||||||
|
"padding": { "type": "number" },
|
||||||
|
"color": { "type": "string" },
|
||||||
|
"separator": { "type": "boolean" },
|
||||||
|
"starred": { "type": "boolean" },
|
||||||
|
"centered": { "type": "boolean" },
|
||||||
|
"iconCrossed": { "type": "boolean" }
|
||||||
|
}
|
||||||
|
}
|
4
docs/Modders/schemas/uniques.json
Normal file
4
docs/Modders/schemas/uniques.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"type": "array",
|
||||||
|
"items": { "type": "string" }
|
||||||
|
}
|
74
docs/Modders/schemas/units.json
Normal file
74
docs/Modders/schemas/units.json
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": { "type": "string" },
|
||||||
|
"unitType": { "type": "string" },
|
||||||
|
|
||||||
|
"movement": { "type": "number" },
|
||||||
|
|
||||||
|
"strength": { "type": "number" },
|
||||||
|
"rangedStrength": { "type": "number" },
|
||||||
|
"religiousStrength": { "type": "number" },
|
||||||
|
"range": { "type": "number" },
|
||||||
|
"interceptRange": { "type": "number" },
|
||||||
|
|
||||||
|
"cost": { "type": "number" },
|
||||||
|
"hurryCostModifier": { "type": "number" },
|
||||||
|
|
||||||
|
"requiredResource": { "type": "string" },
|
||||||
|
"requiredTech": { "type": "string" },
|
||||||
|
"obsoleteTech": { "type": "string" },
|
||||||
|
"upgradesTo": { "type": "string" },
|
||||||
|
|
||||||
|
"uniqueTo": { "type": "string" },
|
||||||
|
"replaces": { "type": "string" },
|
||||||
|
|
||||||
|
"uniques": { "$ref": "#/definitions/uniques" },
|
||||||
|
|
||||||
|
"promotions": {
|
||||||
|
"type": "array",
|
||||||
|
"items": { "type": "string" },
|
||||||
|
"uniqueItems": true
|
||||||
|
},
|
||||||
|
|
||||||
|
"attackSound": { "type": "string" },
|
||||||
|
"replacementTextForUniques": { "type": "string" },
|
||||||
|
"civilopediaText": {
|
||||||
|
"type": "array",
|
||||||
|
"items": { "$ref": "#/definitions/civilopediaText"}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name", "unitType"
|
||||||
|
],
|
||||||
|
"additionalProperties": false
|
||||||
|
},
|
||||||
|
"definitions": {
|
||||||
|
"uniques": {
|
||||||
|
"type": "array",
|
||||||
|
"items": { "type": "string" }
|
||||||
|
},
|
||||||
|
"civilopediaText": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"text": { "type": "string" },
|
||||||
|
"link": { "type": "string" },
|
||||||
|
"icon": { "type": "string" },
|
||||||
|
"extraImage": { "type": "string" },
|
||||||
|
"imageSize": { "type": "number" },
|
||||||
|
"size": { "type": "number" },
|
||||||
|
"header": { "type": "number" },
|
||||||
|
"indent": { "type": "number" },
|
||||||
|
"padding": { "type": "number" },
|
||||||
|
"color": { "type": "string" },
|
||||||
|
"separator": { "type": "boolean" },
|
||||||
|
"starred": { "type": "boolean" },
|
||||||
|
"centered": { "type": "boolean" },
|
||||||
|
"iconCrossed": { "type": "boolean" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user