Updated Schemas

This commit is contained in:
Ben C 2022-11-25 22:08:29 +00:00
parent 439eebd2b5
commit 643a520202

View File

@ -291,7 +291,7 @@
}, },
"hasTrees": { "hasTrees": {
"type": "boolean", "type": "boolean",
"description": "Does this planet have trees? This will change the \"Oxygen tank refilled\" to \"Trees detected, oxygen tank refilled\"." "description": "Does this planet have trees? This will change the notification from \"Oxygen tank refilled\" to \"Trees detected, oxygen tank refilled\"."
}, },
"hasRain": { "hasRain": {
"type": "boolean", "type": "boolean",
@ -2530,6 +2530,13 @@
"$ref": "#/definitions/NotificationVolumeInfo" "$ref": "#/definitions/NotificationVolumeInfo"
} }
}, },
"oxygenVolumes": {
"type": "array",
"description": "Add oxygen volumes to this planet.",
"items": {
"$ref": "#/definitions/OxygenVolumeInfo"
}
},
"revealVolumes": { "revealVolumes": {
"type": "array", "type": "array",
"description": "Add triggers that reveal parts of the ship log on this planet.", "description": "Add triggers that reveal parts of the ship log on this planet.",
@ -2564,7 +2571,8 @@
"radius": { "radius": {
"type": "number", "type": "number",
"description": "The radius of this volume.", "description": "The radius of this volume.",
"format": "float" "format": "float",
"default": 1.0
}, },
"parentPath": { "parentPath": {
"type": "string", "type": "string",
@ -2658,7 +2666,8 @@
"radius": { "radius": {
"type": "number", "type": "number",
"description": "The radius of this volume.", "description": "The radius of this volume.",
"format": "float" "format": "float",
"default": 1.0
}, },
"parentPath": { "parentPath": {
"type": "string", "type": "string",
@ -2724,7 +2733,8 @@
"radius": { "radius": {
"type": "number", "type": "number",
"description": "The radius of this volume.", "description": "The radius of this volume.",
"format": "float" "format": "float",
"default": 1.0
}, },
"parentPath": { "parentPath": {
"type": "string", "type": "string",
@ -2806,7 +2816,8 @@
"radius": { "radius": {
"type": "number", "type": "number",
"description": "The radius of this volume.", "description": "The radius of this volume.",
"format": "float" "format": "float",
"default": 1.0
}, },
"parentPath": { "parentPath": {
"type": "string", "type": "string",
@ -2829,7 +2840,8 @@
"radius": { "radius": {
"type": "number", "type": "number",
"description": "The radius of this volume.", "description": "The radius of this volume.",
"format": "float" "format": "float",
"default": 1.0
}, },
"parentPath": { "parentPath": {
"type": "string", "type": "string",
@ -2884,6 +2896,39 @@
} }
} }
}, },
"OxygenVolumeInfo": {
"type": "object",
"additionalProperties": false,
"properties": {
"position": {
"description": "The location of this volume. Optional (will default to 0,0,0).",
"$ref": "#/definitions/MVector3"
},
"radius": {
"type": "number",
"description": "The radius of this volume.",
"format": "float",
"default": 1.0
},
"parentPath": {
"type": "string",
"description": "The relative path from the planet to the parent of this object. Optional (will default to the root sector)."
},
"rename": {
"type": "string",
"description": "An optional rename of this volume."
},
"treeVolume": {
"type": "boolean",
"description": "Does this volume contain trees? This will change the notification from \"Oxygen tank refilled\" to \"Trees detected, oxygen tank refilled\"."
},
"playRefillAudio": {
"type": "boolean",
"description": "Whether to play the oxygen tank refill sound or just fill quietly.",
"default": true
}
}
},
"RevealVolumeInfo": { "RevealVolumeInfo": {
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
@ -2895,7 +2940,8 @@
"radius": { "radius": {
"type": "number", "type": "number",
"description": "The radius of this volume.", "description": "The radius of this volume.",
"format": "float" "format": "float",
"default": 1.0
}, },
"parentPath": { "parentPath": {
"type": "string", "type": "string",
@ -2908,12 +2954,14 @@
"maxAngle": { "maxAngle": {
"type": "number", "type": "number",
"description": "The max view angle (in degrees) the player can see the volume with to unlock the fact (`observe` only)", "description": "The max view angle (in degrees) the player can see the volume with to unlock the fact (`observe` only)",
"format": "float" "format": "float",
"default": 180.0
}, },
"maxDistance": { "maxDistance": {
"type": "number", "type": "number",
"description": "The max distance the user can be away from the volume to reveal the fact (`snapshot` and `observe` only)", "description": "The max distance the user can be away from the volume to reveal the fact (`snapshot` and `observe` only)",
"format": "float" "format": "float",
"default": -1.0
}, },
"revealOn": { "revealOn": {
"description": "What needs to be done to the volume to unlock the facts", "description": "What needs to be done to the volume to unlock the facts",
@ -2977,7 +3025,8 @@
"radius": { "radius": {
"type": "number", "type": "number",
"description": "The radius of this volume.", "description": "The radius of this volume.",
"format": "float" "format": "float",
"default": 1.0
}, },
"parentPath": { "parentPath": {
"type": "string", "type": "string",
@ -2987,6 +3036,12 @@
"type": "string", "type": "string",
"description": "An optional rename of this volume." "description": "An optional rename of this volume."
}, },
"layer": {
"type": "integer",
"description": "The layer of this volume.",
"format": "int32",
"default": 0
},
"priority": { "priority": {
"type": "integer", "type": "integer",
"description": "The priority for this volume's effects to be applied. \nEx, a player in a gravity volume with priority 0, and zero-gravity volume with priority 1, will feel zero gravity.", "description": "The priority for this volume's effects to be applied. \nEx, a player in a gravity volume with priority 0, and zero-gravity volume with priority 1, will feel zero gravity.",