1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
vcmi/config/schemas/mapHeader.json

45 lines
1.1 KiB
JSON
Raw Normal View History

{
2023-05-19 20:14:01 +02:00
"type" : "object",
"$schema" : "http://json-schema.org/draft-04/schema",
"title" : "VCMI map header format",
"description" : "Part of map in json format, defines core settings of the map",
2023-05-19 20:14:01 +02:00
"required" : [ "victoryIconIndex", "victoryString", "defeatIconIndex", "defeatString" ],
"additionalProperties" : false,
2023-05-19 20:14:01 +02:00
"properties" : {
"victoryIconIndex" : {
"type" : "number"
},
2023-05-19 20:14:01 +02:00
"victoryString" : {
"type" : "string"
},
2023-05-19 20:14:01 +02:00
"defeatIconIndex" : {
"type" : "number"
},
2023-05-19 20:14:01 +02:00
"defeatString" : {
"type" : "string"
},
"triggeredEvents" : {
"type" : "object",
"additionalProperties" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"required" : [ "condition", "message", "effect" ],
"condition" : { "type" : "array" },
"description" : { "type" : "string" },
"message" : { "type" : "string" },
"effect" : {
"type" : "object",
"additionalProperties" : false,
"required" : [ "type", "messageToSend" ],
"properties" : {
"type" : { "type" : "string" },
"messageToSend" : { "type" : "string" }
}
}
}
}
}
}
}