mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 07:17:50 +07:00
json schema for tileResources
This commit is contained in:
@ -59,6 +59,12 @@ Tada! Now Android Studio will recognize all Buildings.json files as belonging to
|
||||
"*/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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user