1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-12 10:03:53 +02:00
vcmi/config/schemas/objectType.json

76 lines
1.6 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" : {
"additionalProperties" : true, // Not validated on its own - instead data copied to main object and validated as part of it
"type" : "object"
},
"rmg" : {
"additionalProperties" : false,
"type" : "object",
"properties" : {
"value" : {
"type" : "number"
},
"mapLimit" : {
"type" : "number"
},
"zoneLimit" : {
"type" : "number"
},
"rarity" : {
"type" : "number"
}
}
},
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"
}
}
}
}
}
}