2014-01-01 16:30:31 +03:00
|
|
|
{
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "object",
|
|
|
|
"$schema" : "http://json-schema.org/draft-04/schema",
|
2014-01-01 16:30:31 +03:00
|
|
|
"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" ],
|
2014-01-01 16:30:31 +03:00
|
|
|
"additionalProperties" : false,
|
2023-05-19 20:14:01 +02:00
|
|
|
"properties" : {
|
|
|
|
"victoryIconIndex" : {
|
|
|
|
"type" : "number"
|
2014-01-01 16:30:31 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"victoryString" : {
|
|
|
|
"type" : "string"
|
2014-01-01 16:30:31 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"defeatIconIndex" : {
|
|
|
|
"type" : "number"
|
2014-01-01 16:30:31 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"defeatString" : {
|
|
|
|
"type" : "string"
|
2014-01-01 16:30:31 +03:00
|
|
|
},
|
|
|
|
"triggeredEvents" : {
|
|
|
|
"type" : "object",
|
|
|
|
"additionalProperties" : {
|
|
|
|
"type" : "object",
|
2023-05-19 20:04:31 +02:00
|
|
|
"additionalProperties" : false,
|
2014-01-01 16:30:31 +03:00
|
|
|
"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" },
|
2018-10-30 23:30:56 +02:00
|
|
|
"messageToSend" : { "type" : "string" }
|
2014-01-01 16:30:31 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|