@@ -22,21 +22,24 @@
"type":"array",
"description": "Background sound of an object",
"items": {
- "type": "string"
+ "type": "string",
+ "format" : "soundFile"
}
},
"visit": {
"description": "Sound that played on object visit",
"removal": {
"description": "Sound that played on object removal",
@@ -47,7 +47,8 @@
"music":
{
"type": "string",
- "description": "Music filename to play on this terrain on adventure map"
+ "description": "Music filename to play on this terrain on adventure map",
+ "format": "musicFile"
"tiles":
@@ -78,12 +79,14 @@
"horseSound":
- "description": "Hero movement sound for this terrain, version for moving on tiles with road"
+ "description": "Hero movement sound for this terrain, version for moving on tiles with road",
+ "format": "soundFile"
"horseSoundPenalty":
- "description": "Hero movement sound for this terrain, version for moving on tiles without road"
+ "description": "Hero movement sound for this terrain, version for moving on tiles without road",
"shortIdentifier":
@@ -112,7 +115,8 @@
"description": "list of ambient sounds for this terrain",
"items":
@@ -1047,6 +1047,7 @@ namespace
std::string musicFile(const JsonNode & node)
+ TEST_FILE(node.meta, "Music/", node.String(), EResType::MUSIC);
TEST_FILE(node.meta, "", node.String(), EResType::MUSIC);
return "Music file \"" + node.String() + "\" was not found";