1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-04 09:42:40 +02:00
vcmi/config/schemas/objectType.json

57 lines
1.2 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 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" : [ ],
"additionalProperties" : true, // may have type-dependant properties
2023-05-19 20:14:01 +02:00
"properties" : {
"index" : {
"type" : "number"
},
2023-05-19 20:14:01 +02:00
"aiValue" : {
"type" : "number"
},
2023-05-19 20:14:01 +02:00
"base" : {
"type" : "object"
},
2023-05-19 20:14:01 +02:00
"templates" : {
"type" : "object",
"additionalProperties" : {
"$ref" : "objectTemplate.json"
}
},
2023-05-19 20:14:01 +02:00
"sounds" : {
"type" : "object",
"additionalProperties" : false,
2023-05-19 20:14:01 +02:00
"description" : "Sounds used by this object",
"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"
}
},
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"
}
},
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"
}
}
}
}
}
}