1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00
vcmi/config/schemas/objectType.json

85 lines
1.8 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"
}
}
},
2024-08-19 13:46:58 +02:00
"name" : {
"type" : "string"
},
2023-05-19 20:14:01 +02:00
"templates" : {
"type" : "object",
"additionalProperties" : {
"$ref" : "objectTemplate.json"
}
},
"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",
"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"
}
}
}
}
}
}