mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-06 00:09:23 +07:00
Added unitTypes json schema
This commit is contained in:
@ -50,9 +50,15 @@ Tada! Now Android Studio will recognize all Buildings.json files as belonging to
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fileMatch": [
|
"fileMatch": [
|
||||||
"*/TileImprovements.json"
|
"*/Techs.json"
|
||||||
],
|
],
|
||||||
"url": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/tileImprovements.json"
|
"url": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/techs.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileMatch": [
|
||||||
|
"*/UnitTypes.json"
|
||||||
|
],
|
||||||
|
"url": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/unitTypes.json"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
"terrainsCanBeBuiltOn": {
|
"terrainsCanBeBuiltOn": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": { "type": "string" },
|
"items": { "type": "string" },
|
||||||
"uniqueItems": true,
|
"uniqueItems": true
|
||||||
},
|
},
|
||||||
"turnsToBuild": { "type": "integer" },
|
"turnsToBuild": { "type": "integer" },
|
||||||
"techRequired": { "type": "string" },
|
"techRequired": { "type": "string" },
|
||||||
|
19
docs/Modders/schemas/unitTypes.json
Normal file
19
docs/Modders/schemas/unitTypes.json
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": { "type": "string" },
|
||||||
|
"movementType": {
|
||||||
|
"enum": ["Land", "Water", "Air"]
|
||||||
|
},
|
||||||
|
"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", "movementType"
|
||||||
|
],
|
||||||
|
"additionalProperties": false
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user