mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Updated mod.json schema to include localization support
This commit is contained in:
parent
9fb426edc1
commit
9d2704adc3
@ -4,7 +4,41 @@
|
||||
"title" : "VCMI mod file format",
|
||||
"description" : "Format used to define main mod file (mod.json) in VCMI",
|
||||
"required" : [ "name", "description", "version", "author", "contact", "modType" ],
|
||||
"definitions" : {
|
||||
"localizeable" : {
|
||||
"type":"object",
|
||||
"additionalProperties" : false,
|
||||
"required" : [ "name", "description", "author", "modType" ],
|
||||
"properties":{
|
||||
"name": {
|
||||
"type":"string",
|
||||
"description": "Short name of your mod. No more than 2-3 words"
|
||||
},
|
||||
"description": {
|
||||
"type":"string",
|
||||
"description": "More lengthy description of mod. No hard limit"
|
||||
},
|
||||
|
||||
"modType" : {
|
||||
"type":"string",
|
||||
"description": "Type of mod, e.g. Town, Artifacts, Graphical."
|
||||
},
|
||||
"author" : {
|
||||
"type":"string",
|
||||
"description": "Author of the mod. Can be nickname, real name or name of team"
|
||||
},
|
||||
"changelog" : {
|
||||
"type":"object",
|
||||
"description": "List of changes/new features in each version",
|
||||
"additionalProperties" : {
|
||||
"type" : "array",
|
||||
"items" : { "type":"string" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"additionalProperties" : false,
|
||||
"properties":{
|
||||
"name": {
|
||||
@ -78,6 +112,26 @@
|
||||
"type":"boolean",
|
||||
"description": "If set to true, mod will not be enabled automatically on install"
|
||||
},
|
||||
|
||||
"english" : {
|
||||
"$ref" : "#/definitions/localizeable"
|
||||
},
|
||||
|
||||
"german" : {
|
||||
"$ref" : "#/definitions/localizeable"
|
||||
},
|
||||
|
||||
"polish" : {
|
||||
"$ref" : "#/definitions/localizeable"
|
||||
},
|
||||
|
||||
"russian" : {
|
||||
"$ref" : "#/definitions/localizeable"
|
||||
},
|
||||
|
||||
"ukrainian" : {
|
||||
"$ref" : "#/definitions/localizeable"
|
||||
},
|
||||
|
||||
"artifacts": {
|
||||
"type":"array",
|
||||
|
Loading…
Reference in New Issue
Block a user