From f33a820c94a80a0cc96c17acf63ef655f596c259 Mon Sep 17 00:00:00 2001 From: Ben C Date: Fri, 25 Nov 2022 22:15:18 +0000 Subject: [PATCH] Updated Schemas --- NewHorizons/Schemas/body_schema.json | 88 ++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/NewHorizons/Schemas/body_schema.json b/NewHorizons/Schemas/body_schema.json index 3d386549..fbc794ed 100644 --- a/NewHorizons/Schemas/body_schema.json +++ b/NewHorizons/Schemas/body_schema.json @@ -2495,6 +2495,13 @@ "$ref": "#/definitions/DestructionVolumeInfo" } }, + "fluidVolumes": { + "type": "array", + "description": "Add fluid volumes to this planet.", + "items": { + "$ref": "#/definitions/FluidVolumeInfo" + } + }, "hazardVolumes": { "type": "array", "description": "Add hazard volumes to this planet.", @@ -2722,6 +2729,87 @@ "crushedByElevator" ] }, + "FluidVolumeInfo": { + "type": "object", + "additionalProperties": false, + "properties": { + "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 + }, + "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." + }, + "density": { + "type": "number", + "description": "Density of the fluid. The higher the density, the harder it is to go through this fluid.", + "format": "float", + "default": 1.2 + }, + "type": { + "description": "The type of fluid for this volume.", + "$ref": "#/definitions/FluidType2" + }, + "alignmentFluid": { + "type": "boolean", + "description": "Should the player and rafts align to this fluid.", + "default": true + }, + "allowShipAutoroll": { + "type": "boolean", + "description": "Should the ship align to the fluid by rolling." + }, + "disableOnStart": { + "type": "boolean", + "description": "Disable this fluid volume immediately?" + } + } + }, + "FluidType2": { + "type": "string", + "description": "", + "x-enumNames": [ + "NONE", + "AIR", + "WATER", + "CLOUD", + "SAND", + "PLASMA", + "FOG" + ], + "enum": [ + "none", + "air", + "water", + "cloud", + "sand", + "plasma", + "fog" + ] + }, "HazardVolumeInfo": { "type": "object", "additionalProperties": false,