2014-06-03 22:45:18 +03:00
|
|
|
{
|
|
|
|
"type":"object",
|
|
|
|
"$schema": "http://json-schema.org/draft-04/schema",
|
|
|
|
"title" : "VCMI map object type format",
|
|
|
|
"description" : "Description of map object type, used only as sub-schema of object",
|
|
|
|
"required": [ ],
|
|
|
|
"additionalProperties" : true, // may have type-dependant properties
|
|
|
|
|
|
|
|
"properties":{
|
|
|
|
"index": {
|
2018-10-30 23:30:56 +02:00
|
|
|
"type":"number"
|
2014-06-03 22:45:18 +03:00
|
|
|
},
|
|
|
|
"name": {
|
2018-10-30 23:30:56 +02:00
|
|
|
"type":"string"
|
2014-06-03 22:45:18 +03:00
|
|
|
},
|
2018-07-28 00:43:56 +02:00
|
|
|
"aiValue": {
|
2018-10-30 23:30:56 +02:00
|
|
|
"type":"number"
|
2018-07-28 00:43:56 +02:00
|
|
|
},
|
2014-06-03 22:45:18 +03:00
|
|
|
|
2017-09-13 02:35:48 +02:00
|
|
|
"sounds": {
|
|
|
|
"type":"object",
|
|
|
|
"additionalProperties" : false,
|
|
|
|
"description": "Sounds used by this object",
|
|
|
|
"properties" : {
|
|
|
|
"ambient": {
|
|
|
|
"type":"array",
|
|
|
|
"description": "Background sound of an object",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"visit": {
|
|
|
|
"type":"array",
|
|
|
|
"description": "Sound that played on object visit",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"removal": {
|
|
|
|
"type":"array",
|
|
|
|
"description": "Sound that played on object removal",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2014-06-03 22:45:18 +03:00
|
|
|
"base": {
|
2014-06-04 11:25:13 +03:00
|
|
|
"type" : "object"
|
2014-06-03 22:45:18 +03:00
|
|
|
},
|
2014-06-16 19:27:26 +03:00
|
|
|
"templates": {
|
2014-06-03 22:45:18 +03:00
|
|
|
"type":"object",
|
|
|
|
"additionalProperties": {
|
2018-10-30 23:30:56 +02:00
|
|
|
"$ref" : "objectTemplate.json"
|
2014-06-03 22:45:18 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|