mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-10 15:59:33 +07:00
Instructions for setting up schemas on AS
This commit is contained in:
@ -2,49 +2,48 @@
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"allOf": [
|
||||
{ "$ref": "#/definitions/stats"},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": { "type": "string" },
|
||||
"uniques": {
|
||||
"type": "array",
|
||||
"items": { "type": "string" },
|
||||
"uniqueItems": true // Can't imagine you mean to include the same thing twice
|
||||
},
|
||||
"civilopediaText": {
|
||||
"type": "array",
|
||||
"items": { "$ref": "#/definitions/civilopediaText"}
|
||||
},
|
||||
"requiredTech": { "type": "string" },
|
||||
"cost": { "type": "number" },
|
||||
"maintenance": { "type": "number" },
|
||||
"percentStatBonus": { "$ref": "#/definitions/stats" },
|
||||
"specialistSlots": { "type": "object" },
|
||||
"greatPersonPoints": { "type": "object" },
|
||||
"hurryCostModifier": { "type": "number" },
|
||||
"isWonder": { "type": "boolean" },
|
||||
"isNationalWonder": { "type": "boolean" },
|
||||
"requiredBuilding": { "type": "string" },
|
||||
"requiredResource": { "type": "string" },
|
||||
"requiredNearbyImprovedResources": {
|
||||
"type": "array",
|
||||
"items": { "type": "string" }
|
||||
},
|
||||
"cityStrength": { "type": "number" },
|
||||
"cityHealth": { "type": "number" },
|
||||
"replaces": { "type": "string" },
|
||||
"uniqueTo": { "type": "string" },
|
||||
"quote": { "type": "string" },
|
||||
"replacementTextForUniques": { "type": "string" }
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": { "type": "string" },
|
||||
"uniques": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"pattern": "^[^><]*(\\<[^>]*\\>[^><]*)*$"
|
||||
},
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
}
|
||||
"uniqueItems": true // Can't imagine you mean to include the same thing twice
|
||||
},
|
||||
"civilopediaText": {
|
||||
"type": "array",
|
||||
"items": { "$ref": "#/definitions/civilopediaText"}
|
||||
},
|
||||
"requiredTech": { "type": "string" },
|
||||
"cost": { "type": "number" },
|
||||
"maintenance": { "type": "number" },
|
||||
"percentStatBonus": { "$ref": "#/definitions/stats" },
|
||||
"specialistSlots": { "type": "object" },
|
||||
"greatPersonPoints": { "type": "object" },
|
||||
"hurryCostModifier": { "type": "number" },
|
||||
"isWonder": { "type": "boolean" },
|
||||
"isNationalWonder": { "type": "boolean" },
|
||||
"requiredBuilding": { "type": "string" },
|
||||
"requiredResource": { "type": "string" },
|
||||
"requiredNearbyImprovedResources": {
|
||||
"type": "array",
|
||||
"items": { "type": "string" }
|
||||
},
|
||||
"cityStrength": { "type": "number" },
|
||||
"cityHealth": { "type": "number" },
|
||||
"replaces": { "type": "string" },
|
||||
"uniqueTo": { "type": "string" },
|
||||
"quote": { "type": "string" },
|
||||
"replacementTextForUniques": { "type": "string" }
|
||||
},
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"allOf": [{ "$ref": "#/definitions/stats"}],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"definitions": {
|
||||
"stats": {
|
||||
|
Reference in New Issue
Block a user