mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 21:35:14 -04:00
json schema for tileResources
This commit is contained in:
parent
4dbed12e45
commit
cba867bb7e
@ -59,6 +59,12 @@ Tada! Now Android Studio will recognize all Buildings.json files as belonging to
|
|||||||
"*/UnitTypes.json"
|
"*/UnitTypes.json"
|
||||||
],
|
],
|
||||||
"url": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/unitTypes.json"
|
"url": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/unitTypes.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileMatch": [
|
||||||
|
"*/TileResources.json"
|
||||||
|
],
|
||||||
|
"url": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/tileResources.json"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
34
docs/Modders/schemas/tileResources.json
Normal file
34
docs/Modders/schemas/tileResources.json
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": { "type": "string" },
|
||||||
|
"terrainsCanBeFoundOn": {
|
||||||
|
"type": "array",
|
||||||
|
"items": { "type": "string" },
|
||||||
|
"uniqueItems": true
|
||||||
|
},
|
||||||
|
"improvement": { "type": "string" },
|
||||||
|
"techRequired": { "type": "string" },
|
||||||
|
"improvementStats": { "$ref": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/stats.json" },
|
||||||
|
|
||||||
|
"production": { "type": "number" },
|
||||||
|
"food": { "type": "number" },
|
||||||
|
"gold": { "type": "number" },
|
||||||
|
"science": { "type": "number" },
|
||||||
|
"culture": { "type": "number" },
|
||||||
|
"happiness": { "type": "number" },
|
||||||
|
"faith": { "type": "number" },
|
||||||
|
|
||||||
|
"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": [
|
||||||
|
"name",
|
||||||
|
],
|
||||||
|
"additionalProperties": false
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user