2014-06-03 22:45:18 +03:00
|
|
|
{
|
|
|
|
"type":"object",
|
|
|
|
"$schema": "http://json-schema.org/draft-04/schema",
|
|
|
|
"title" : "VCMI map object format",
|
|
|
|
"description" : "Description of map object class",
|
|
|
|
"required": [ "handler", "name" ],
|
|
|
|
"additionalProperties" : false,
|
|
|
|
|
|
|
|
"properties":{
|
|
|
|
"index": {
|
|
|
|
"type":"number",
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type":"string",
|
|
|
|
},
|
|
|
|
|
|
|
|
"handler": {
|
|
|
|
"type":"string",
|
|
|
|
},
|
|
|
|
|
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
|
|
|
},
|
|
|
|
"types": {
|
|
|
|
"type":"object",
|
|
|
|
"additionalProperties": {
|
|
|
|
"$ref" : "vcmi:objectType"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|