2014-06-03 22:45:18 +03:00
|
|
|
{
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "object",
|
|
|
|
"$schema" : "http://json-schema.org/draft-04/schema",
|
2014-06-03 22:45:18 +03:00
|
|
|
"title" : "VCMI map object type format",
|
|
|
|
"description" : "Description of map object type, used only as sub-schema of object",
|
2023-05-19 20:14:01 +02:00
|
|
|
"required" : [ ],
|
2014-06-03 22:45:18 +03:00
|
|
|
"additionalProperties" : true, // may have type-dependant properties
|
2023-05-19 20:14:01 +02:00
|
|
|
"properties" : {
|
|
|
|
"index" : {
|
|
|
|
"type" : "number"
|
2014-06-03 22:45:18 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"aiValue" : {
|
|
|
|
"type" : "number"
|
2018-07-28 00:43:56 +02:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"base" : {
|
2023-09-18 13:04:15 +02:00
|
|
|
"additionalProperties" : true, // Not validated on its own - instead data copied to main object and validated as part of it
|
2023-05-19 20:04:31 +02:00
|
|
|
"type" : "object"
|
|
|
|
},
|
2023-09-18 13:04:15 +02:00
|
|
|
"rmg" : {
|
|
|
|
"additionalProperties" : false,
|
|
|
|
"type" : "object",
|
|
|
|
"properties" : {
|
|
|
|
"value" : {
|
|
|
|
"type" : "number"
|
|
|
|
},
|
|
|
|
"mapLimit" : {
|
|
|
|
"type" : "number"
|
|
|
|
},
|
|
|
|
"zoneLimit" : {
|
|
|
|
"type" : "number"
|
|
|
|
},
|
|
|
|
"rarity" : {
|
|
|
|
"type" : "number"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2024-08-19 13:46:58 +02:00
|
|
|
"name" : {
|
|
|
|
"type" : "string"
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"templates" : {
|
|
|
|
"type" : "object",
|
|
|
|
"additionalProperties" : {
|
2023-05-19 20:04:31 +02:00
|
|
|
"$ref" : "objectTemplate.json"
|
|
|
|
}
|
|
|
|
},
|
2024-07-15 18:42:57 +02:00
|
|
|
|
|
|
|
"battleground" : {
|
|
|
|
"description" : "Battleground that will be used for combats in this object. Overrides terrain this object was placed on",
|
|
|
|
"type" : "string"
|
|
|
|
},
|
|
|
|
|
2023-05-19 20:14:01 +02:00
|
|
|
"sounds" : {
|
|
|
|
"type" : "object",
|
2017-09-13 02:35:48 +02:00
|
|
|
"additionalProperties" : false,
|
2023-05-19 20:14:01 +02:00
|
|
|
"description" : "Sounds used by this object",
|
2017-09-13 02:35:48 +02:00
|
|
|
"properties" : {
|
2023-05-19 20:14:01 +02:00
|
|
|
"ambient" : {
|
|
|
|
"type" : "array",
|
|
|
|
"description" : "Background sound of an object",
|
|
|
|
"items" : {
|
|
|
|
"type" : "string",
|
2023-04-24 15:28:48 +02:00
|
|
|
"format" : "soundFile"
|
2017-09-13 02:35:48 +02:00
|
|
|
}
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"visit" : {
|
|
|
|
"type" : "array",
|
|
|
|
"description" : "Sound that played on object visit",
|
|
|
|
"items" : {
|
|
|
|
"type" : "string",
|
2023-04-24 15:28:48 +02:00
|
|
|
"format" : "soundFile"
|
2017-09-13 02:35:48 +02:00
|
|
|
}
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"removal" : {
|
|
|
|
"type" : "array",
|
|
|
|
"description" : "Sound that played on object removal",
|
|
|
|
"items" : {
|
|
|
|
"type" : "string",
|
2023-04-24 15:28:48 +02:00
|
|
|
"format" : "soundFile"
|
2017-09-13 02:35:48 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-06-03 22:45:18 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|