Updated Schemas

This commit is contained in:
Ben C 2022-11-25 23:18:06 +00:00
parent d34534f9ea
commit 76bcf40f1e

View File

@ -2562,16 +2562,16 @@
"$ref": "#/definitions/VolumeInfo" "$ref": "#/definitions/VolumeInfo"
} }
}, },
"visorEffects": {
"description": "Add visor effect volumes to this planet.",
"$ref": "#/definitions/VisorEffectModule"
},
"zeroGravityVolumes": { "zeroGravityVolumes": {
"type": "array", "type": "array",
"description": "Add zero-gravity volumes to this planet. \nGood for surrounding planets which are using a static position to stop the player being pulled away.", "description": "Add zero-gravity volumes to this planet. \nGood for surrounding planets which are using a static position to stop the player being pulled away.",
"items": { "items": {
"$ref": "#/definitions/PriorityVolumeInfo" "$ref": "#/definitions/PriorityVolumeInfo"
} }
},
"visorEffects": {
"description": "Add visor effect volumes to this planet.",
"$ref": "#/definitions/VisorEffectModule"
} }
} }
}, },
@ -3210,46 +3210,6 @@
"probe" "probe"
] ]
}, },
"PriorityVolumeInfo": {
"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)."
},
"isRelativeToParent": {
"type": "boolean",
"description": "Whether the positional coordinates are relative to parent instead of the root planet object."
},
"rename": {
"type": "string",
"description": "An optional rename of this volume."
},
"layer": {
"type": "integer",
"description": "The layer of this volume.",
"format": "int32",
"default": 0
},
"priority": {
"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.",
"format": "int32",
"default": 1
}
}
},
"VisorEffectModule": { "VisorEffectModule": {
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
@ -3375,6 +3335,46 @@
"default": 1.0 "default": 1.0
} }
} }
},
"PriorityVolumeInfo": {
"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)."
},
"isRelativeToParent": {
"type": "boolean",
"description": "Whether the positional coordinates are relative to parent instead of the root planet object."
},
"rename": {
"type": "string",
"description": "An optional rename of this volume."
},
"layer": {
"type": "integer",
"description": "The layer of this volume.",
"format": "int32",
"default": 0
},
"priority": {
"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.",
"format": "int32",
"default": 1
}
}
} }
}, },
"$docs": { "$docs": {