mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Fixed white spaces
This commit is contained in:
@@ -11,94 +11,92 @@
|
||||
}
|
||||
},
|
||||
"townIconPair" : {
|
||||
"type":"object",
|
||||
"type" : "object",
|
||||
"additionalProperties" : false,
|
||||
"required" : [ "normal", "built" ],
|
||||
"properties": {
|
||||
"built": {
|
||||
"properties" : {
|
||||
"built" : {
|
||||
"$ref" : "#/definitions/townIcon",
|
||||
"description": "Icon used after player build something in town"
|
||||
"description" : "Icon used after player build something in town"
|
||||
},
|
||||
"normal": {
|
||||
"normal" : {
|
||||
"$ref" : "#/definitions/townIcon",
|
||||
"description": "Icon used normally"
|
||||
"description" : "Icon used normally"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"type":"object",
|
||||
"$schema": "http://json-schema.org/draft-04/schema",
|
||||
"type" : "object",
|
||||
"$schema" : "http://json-schema.org/draft-04/schema",
|
||||
"title" : "VCMI faction format",
|
||||
"description": "Json format for defining new faction (aka towns) in VCMI",
|
||||
"description" : "Json format for defining new faction (aka towns) in VCMI",
|
||||
"required" : [ "name", "alignment", "nativeTerrain", "creatureBackground" ],
|
||||
"dependencies" : {
|
||||
"town" : [ "puzzleMap" ]
|
||||
},
|
||||
|
||||
"additionalProperties" : false,
|
||||
"properties":{
|
||||
"properties" : {
|
||||
"name" : {
|
||||
"type" : "string",
|
||||
"description" : "Translatable name of town"
|
||||
},
|
||||
"alignment": {
|
||||
"type":"string",
|
||||
"alignment" : {
|
||||
"type" : "string",
|
||||
"enum" : [ "good", "neutral", "evil" ],
|
||||
"description": "Town alignment, good, neutral or evil"
|
||||
"description" : "Town alignment, good, neutral or evil"
|
||||
},
|
||||
"nativeTerrain": {
|
||||
"type":"string",
|
||||
"description": "Native terrain for creatures. Creatures fighting on native terrain receive several bonuses"
|
||||
"nativeTerrain" : {
|
||||
"type" : "string",
|
||||
"description" : "Native terrain for creatures. Creatures fighting on native terrain receive several bonuses"
|
||||
},
|
||||
"preferUndergroundPlacement": {
|
||||
"type":"boolean",
|
||||
"description": "Random map generator places player/cpu-owned towns underground if true is specified and on the ground otherwise. Parameter is unused for maps without underground. False by default."
|
||||
"preferUndergroundPlacement" : {
|
||||
"type" : "boolean",
|
||||
"description" : "Random map generator places player/cpu-owned towns underground if true is specified and on the ground otherwise. Parameter is unused for maps without underground. False by default."
|
||||
},
|
||||
"creatureBackground": {
|
||||
"type":"object",
|
||||
"creatureBackground" : {
|
||||
"type" : "object",
|
||||
"additionalProperties" : false,
|
||||
"required" : [ "120px", "130px" ],
|
||||
"description": "Backgrounds for creature info card",
|
||||
"properties":{
|
||||
"120px": {
|
||||
"type":"string",
|
||||
"description": "Version that is 120 pixels in height",
|
||||
"description" : "Backgrounds for creature info card",
|
||||
"properties" : {
|
||||
"120px" : {
|
||||
"type" : "string",
|
||||
"description" : "Version that is 120 pixels in height",
|
||||
"format" : "imageFile"
|
||||
},
|
||||
"130px": {
|
||||
"type":"string",
|
||||
"description": "Version that is 130 pixels in height",
|
||||
"130px" : {
|
||||
"type" : "string",
|
||||
"description" : "Version that is 130 pixels in height",
|
||||
"format" : "imageFile"
|
||||
}
|
||||
}
|
||||
},
|
||||
"town": {
|
||||
"type":"object",
|
||||
"town" : {
|
||||
"type" : "object",
|
||||
"additionalProperties" : false,
|
||||
"required" : [
|
||||
"mapObject", "buildingsIcons", "buildings", "creatures", "guildWindow", "names",
|
||||
"hallBackground", "hallSlots", "horde", "mageGuild", "moatAbility", "defaultTavern", "tavernVideo", "guildBackground", "musicTheme", "siege", "structures", "townBackground", "warMachine"
|
||||
],
|
||||
"description": "town",
|
||||
"properties":{
|
||||
"creatures": {
|
||||
"type":"array",
|
||||
"description" : "town",
|
||||
"properties" : {
|
||||
"creatures" : {
|
||||
"type" : "array",
|
||||
"minItems" : 7,
|
||||
"maxItems" : 7,
|
||||
"description" : "List of creatures available for recruitment on each level",
|
||||
"items": {
|
||||
"type":"array",
|
||||
"items" : {
|
||||
"type" : "array",
|
||||
"items" : { "type" : "string" }
|
||||
}
|
||||
},
|
||||
"hallSlots": {
|
||||
"type":"array",
|
||||
"description": "Description of town hall",
|
||||
"hallSlots" : {
|
||||
"type" : "array",
|
||||
"description" : "Description of town hall",
|
||||
"minItems" : 5,
|
||||
"maxItems" : 5,
|
||||
"items": {
|
||||
"type":"array",
|
||||
"items" : {
|
||||
"type" : "array",
|
||||
"minItems" : 1,
|
||||
"maxItems" : 4,
|
||||
"items" : {
|
||||
@@ -108,40 +106,40 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"buildings": {
|
||||
"buildings" : {
|
||||
"type" : "object",
|
||||
"additionalProperties" : {
|
||||
"$ref" : "townBuilding.json"
|
||||
}
|
||||
},
|
||||
"mageGuild": {
|
||||
"type":"number",
|
||||
"description": "Maximal level of mage guild"
|
||||
"mageGuild" : {
|
||||
"type" : "number",
|
||||
"description" : "Maximal level of mage guild"
|
||||
},
|
||||
"primaryResource": {
|
||||
"type":"string",
|
||||
"description": "Primary resource for this town. Produced by Silo and offered as starting bonus"
|
||||
"primaryResource" : {
|
||||
"type" : "string",
|
||||
"description" : "Primary resource for this town. Produced by Silo and offered as starting bonus"
|
||||
},
|
||||
"warMachine": {
|
||||
"type":"string",
|
||||
"description": "Identifier of war machine produced by blacksmith in town"
|
||||
"warMachine" : {
|
||||
"type" : "string",
|
||||
"description" : "Identifier of war machine produced by blacksmith in town"
|
||||
},
|
||||
"horde": {
|
||||
"type":"array",
|
||||
"horde" : {
|
||||
"type" : "array",
|
||||
"maxItems" : 2,
|
||||
"description": "Levels of creatures that have hordes in town",
|
||||
"items": { "type":"number" }
|
||||
"description" : "Levels of creatures that have hordes in town",
|
||||
"items" : { "type" : "number" }
|
||||
},
|
||||
"moatAbility": {
|
||||
"type":"string",
|
||||
"description": "Identifier of ability to use as town moat during siege"
|
||||
"moatAbility" : {
|
||||
"type" : "string",
|
||||
"description" : "Identifier of ability to use as town moat during siege"
|
||||
},
|
||||
"siege": {
|
||||
"siege" : {
|
||||
"$ref" : "townSiege.json"
|
||||
},
|
||||
"musicTheme": {
|
||||
"type":"string",
|
||||
"description": "Path to town music theme",
|
||||
"musicTheme" : {
|
||||
"type" : "string",
|
||||
"description" : "Path to town music theme",
|
||||
"format" : "musicFile"
|
||||
},
|
||||
"tavernVideo" : {
|
||||
@@ -149,28 +147,28 @@
|
||||
"description" : "Video for tavern window",
|
||||
"format" : "videoFile"
|
||||
},
|
||||
"townBackground": {
|
||||
"type":"string",
|
||||
"description": "Background for town screen",
|
||||
"format" : "imageFile"
|
||||
},
|
||||
"guildWindow": {
|
||||
"type":"string",
|
||||
"description": "Image with small view on town from mage guild"
|
||||
},
|
||||
"guildBackground": {
|
||||
"type":"string",
|
||||
"description": "Image with background of mage guild",
|
||||
"format" : "imageFile"
|
||||
},
|
||||
"hallBackground": {
|
||||
"type":"string",
|
||||
"description": "background image for town hall",
|
||||
"format" : "imageFile"
|
||||
},
|
||||
"buildingsIcons": {
|
||||
"townBackground" : {
|
||||
"type" : "string",
|
||||
"description": "Path to .def file with building icons",
|
||||
"description" : "Background for town screen",
|
||||
"format" : "imageFile"
|
||||
},
|
||||
"guildWindow" : {
|
||||
"type" : "string",
|
||||
"description" : "Image with small view on town from mage guild"
|
||||
},
|
||||
"guildBackground" : {
|
||||
"type" : "string",
|
||||
"description" : "Image with background of mage guild",
|
||||
"format" : "imageFile"
|
||||
},
|
||||
"hallBackground" : {
|
||||
"type" : "string",
|
||||
"description" : "background image for town hall",
|
||||
"format" : "imageFile"
|
||||
},
|
||||
"buildingsIcons" : {
|
||||
"type" : "string",
|
||||
"description" : "Path to .def file with building icons",
|
||||
"format" : "animationFile"
|
||||
},
|
||||
"mapObject" : {
|
||||
@@ -181,25 +179,25 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"structures": {
|
||||
"structures" : {
|
||||
"type" : "object",
|
||||
"additionalProperties" : {
|
||||
"$ref" : "townStructure.json"
|
||||
}
|
||||
},
|
||||
"icons": {
|
||||
"type":"object",
|
||||
"icons" : {
|
||||
"type" : "object",
|
||||
"additionalProperties" : false,
|
||||
"description": "Town icons",
|
||||
"description" : "Town icons",
|
||||
"required" : [ "fort", "village" ],
|
||||
"properties":{
|
||||
"fort": {
|
||||
"properties" : {
|
||||
"fort" : {
|
||||
"$ref" : "#/definitions/townIconPair",
|
||||
"description": "Icons for town with built fort"
|
||||
"description" : "Icons for town with built fort"
|
||||
},
|
||||
"village": {
|
||||
"village" : {
|
||||
"$ref" : "#/definitions/townIconPair",
|
||||
"description": "Icons for town without fort"
|
||||
"description" : "Icons for town without fort"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -231,30 +229,30 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"puzzleMap": {
|
||||
"type":"object",
|
||||
"puzzleMap" : {
|
||||
"type" : "object",
|
||||
"additionalProperties" : false,
|
||||
"required" : [ "prefix", "pieces" ],
|
||||
"description": "Puzzle map from obelisks for this town. Must contain 48 pieces",
|
||||
"properties":{
|
||||
"pieces": {
|
||||
"type":"array",
|
||||
"description": "Lits of pieces definitions",
|
||||
"description" : "Puzzle map from obelisks for this town. Must contain 48 pieces",
|
||||
"properties" : {
|
||||
"pieces" : {
|
||||
"type" : "array",
|
||||
"description" : "Lits of pieces definitions",
|
||||
"minItems" : 48,
|
||||
"maxItems" : 48,
|
||||
"items": {
|
||||
"type":"object",
|
||||
"items" : {
|
||||
"type" : "object",
|
||||
"additionalProperties" : false,
|
||||
"properties":{
|
||||
"index": { "type":"number", "description" : "Order in which images will be opened" },
|
||||
"x": { "type":"number", "description" : "X coordinate on screen" },
|
||||
"y": { "type":"number", "description" : "X coordinate on screen" }
|
||||
"properties" : {
|
||||
"index" : { "type" : "number", "description" : "Order in which images will be opened" },
|
||||
"x" : { "type" : "number", "description" : "X coordinate on screen" },
|
||||
"y" : { "type" : "number", "description" : "X coordinate on screen" }
|
||||
}
|
||||
}
|
||||
},
|
||||
"prefix": {
|
||||
"type":"string",
|
||||
"description": "Prefix for image names, e.g. \"PUZCAS\" for name \"PUZCAS12.png\""
|
||||
"prefix" : {
|
||||
"type" : "string",
|
||||
"description" : "Prefix for image names, e.g. \"PUZCAS\" for name \"PUZCAS12.png\""
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user