mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 21:35:14 -04:00
Added techs json schema
This commit is contained in:
parent
daafa5104f
commit
f13bb7990f
@ -42,6 +42,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/nations.json"
|
"url": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/nations.json"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"fileMatch": [
|
||||||
|
"*/TileImprovements.json"
|
||||||
|
],
|
||||||
|
"url": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/tileImprovements.json"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"fileMatch": [
|
"fileMatch": [
|
||||||
"*/TileImprovements.json"
|
"*/TileImprovements.json"
|
||||||
|
46
docs/Modders/schemas/techs.json
Normal file
46
docs/Modders/schemas/techs.json
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"columnNumber": { "type": "integer" },
|
||||||
|
"era": { "type": "string" },
|
||||||
|
"techCost": { "type": "integer" },
|
||||||
|
"buildingCost": { "type": "integer" },
|
||||||
|
"wonderCost": { "type": "integer" },
|
||||||
|
"techs": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": { "type": "string" },
|
||||||
|
"row": { "type": "integer" },
|
||||||
|
"cost": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Science cost of this tech - overrides the column techCost"
|
||||||
|
},
|
||||||
|
"uniques": { "$ref": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/uniques.json" },
|
||||||
|
"prerequisites": {
|
||||||
|
"type": "array",
|
||||||
|
"items": { "type": "string" },
|
||||||
|
"uniqueItems": true
|
||||||
|
},
|
||||||
|
"civilopediaText": { "$ref": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/civilopediaText.json" },
|
||||||
|
"quote": { "type": "string" }
|
||||||
|
},
|
||||||
|
"required": ["name", "row"],
|
||||||
|
"additionalProperties": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"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" }
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"columnNumber", "era"
|
||||||
|
],
|
||||||
|
"additionalProperties": false
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user