Updating sound definitions

This commit is contained in:
DaanV2
2021-10-27 19:31:20 +02:00
parent 23900b0fe4
commit 43c625dccc

View File

@@ -12,25 +12,33 @@
"title": "Sound Filepath Schema", "title": "Sound Filepath Schema",
"description": "The filepath to the sound, starts with `sounds/'", "description": "The filepath to the sound, starts with `sounds/'",
"pattern": "(^sounds/.*$|^$)", "pattern": "(^sounds/.*$|^$)",
"additionalItems": true "additionalItems": true,
"examples": ["sounds/"]
}, },
"SoundSpec": { "SoundSpec": {
"additionalItems": false,
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"$id": "#/Sound", "$id": "#/Sound",
"title": "Sound", "title": "Sound",
"required": ["sounds"], "required": ["sounds"],
"properties": { "properties": {
"__use_legacy_max_distance": {
"type": "boolean",
"title": "Use Legacy Max Distance",
"description": "UNDOCUMENTED"
},
"category": { "category": {
"type": "string", "type": "string",
"$id": "#/Sound/category",
"title": "Sound Category", "title": "Sound Category",
"enum": ["ambient", "block", "music", "weather", "ui", "bucket", "neutral", "player", "hostile", "record", "bottle"], "enum": ["ambient", "block", "music", "weather", "ui", "bucket", "neutral", "player", "hostile", "record", "bottle"],
"description": "UNDOCUMENTED: category" "description": "UNDOCUMENTED: category"
}, },
"sounds": { "sounds": {
"title": "Sounds",
"description": "UNDOCUMENTED: sounds",
"items": { "items": {
"title": "Sounds",
"description": "UNDOCUMENTED: sounds",
"anyOf": [ "anyOf": [
{ {
"$id": "#/Sound/sounds/stringItem", "$id": "#/Sound/sounds/stringItem",
@@ -41,11 +49,17 @@
"title": "Sounds" "title": "Sounds"
}, },
{ {
"additionalItems": false, "additionalProperties": false,
"$id": "#/Sound/sounds/ObjectItem", "$id": "#/Sound/sounds/ObjectItem",
"type": "object", "type": "object",
"required": ["name"], "required": ["name"],
"properties": { "properties": {
"is3D": {
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Is 3D",
"type": "boolean"
},
"pitch": { "description": "The pitch of the audio, 1 is nomial", "type": "number", "minimum": 0, "maximum": 2, "title": "Pitch" }, "pitch": { "description": "The pitch of the audio, 1 is nomial", "type": "number", "minimum": 0, "maximum": 2, "title": "Pitch" },
"volume": { "description": "The volume of the audio, 1 is nomial", "type": "number", "minimum": 0, "title": "Volume" }, "volume": { "description": "The volume of the audio, 1 is nomial", "type": "number", "minimum": 0, "title": "Volume" },
"load_on_low_memory": { "load_on_low_memory": {
@@ -60,18 +74,25 @@
"$ref": "#/definitions/SoundPath", "$ref": "#/definitions/SoundPath",
"description": "UNDOCUMENTED: name", "description": "UNDOCUMENTED: name",
"title": "Name" "title": "Name"
},
"weight": {
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Weight",
"type": "integer",
"minimum": 0
} }
}, },
"description": "UNDOCUMENTED", "description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"title": "Sounds" "title": "Sounds"
} }
], ]
"description": "UNDOCUMENTED: sounds", }
"title": "Sounds" },
}, "max_distance": {
"description": "UNDOCUMENTED: sounds", "title": "Max Distance",
"title": "Sounds" "description": "UNDOCUMENTED"
} }
} }
} }