Updated Schemas

This commit is contained in:
github-actions[bot] 2022-06-29 21:43:35 +00:00
parent 1e3f941286
commit 9a83fdae4c

View File

@ -102,10 +102,6 @@
"description": "Add signals that can be heard via the signal-scope to this planet", "description": "Add signals that can be heard via the signal-scope to this planet",
"$ref": "#/definitions/SignalModule" "$ref": "#/definitions/SignalModule"
}, },
"Singularity": {
"description": "Add a black or white hole to this planet",
"$ref": "#/definitions/SingularityModule"
},
"Spawn": { "Spawn": {
"description": "Spawn the player at this planet", "description": "Spawn the player at this planet",
"$ref": "#/definitions/SpawnModule" "$ref": "#/definitions/SpawnModule"
@ -811,6 +807,13 @@
"items": { "items": {
"$ref": "#/definitions/VolcanoInfo" "$ref": "#/definitions/VolcanoInfo"
} }
},
"singularities": {
"type": "array",
"description": "Add black/white-holes to this planet",
"items": {
"$ref": "#/definitions/SingularityModule"
}
} }
} }
}, },
@ -1451,6 +1454,62 @@
} }
} }
}, },
"SingularityModule": {
"type": "object",
"additionalProperties": false,
"properties": {
"curve": {
"type": "array",
"description": "Scale this module over time",
"items": {
"$ref": "#/definitions/TimeValuePair"
}
},
"makeZeroGVolume": {
"type": "boolean",
"description": "Only for White Holes. Should this white hole repel the player from it.",
"default": true
},
"pairedSingularity": {
"type": "string",
"description": "The uniqueID of the white hole or black hole that is paired to this one. If you don't set a value, entering will kill\nthe player"
},
"uniqueID": {
"type": "string",
"description": "The uniqueID of this white hole or black hole. If not set it will default to the name of the planet"
},
"position": {
"description": "Position of the singularity",
"$ref": "#/definitions/MVector3"
},
"size": {
"type": "number",
"description": "Radius of the singularity. Note that this isn't the same as the event horizon, but includes the entire volume that\nhas warped effects in it.",
"format": "float",
"minimum": 0.0
},
"targetStarSystem": {
"type": "string",
"description": "If you want a black hole to load a new star system scene, put its name here."
},
"type": {
"description": "Type of singularity (white hole or black hole)",
"$ref": "#/definitions/SingularityType"
}
}
},
"SingularityType": {
"type": "string",
"description": "",
"x-enumNames": [
"BlackHole",
"WhiteHole"
],
"enum": [
"blackHole",
"whiteHole"
]
},
"ReferenceFrameModule": { "ReferenceFrameModule": {
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
@ -1729,58 +1788,6 @@
} }
} }
}, },
"SingularityModule": {
"type": "object",
"additionalProperties": false,
"properties": {
"curve": {
"type": "array",
"description": "Scale this module over time",
"items": {
"$ref": "#/definitions/TimeValuePair"
}
},
"makeZeroGVolume": {
"type": "boolean",
"description": "Only for White Holes. Should this white hole repel the player from it.",
"default": true
},
"pairedSingularity": {
"type": "string",
"description": "The name of the white hole or black hole that is paired to this one. If you don't set a value, entering will kill\nthe player"
},
"position": {
"description": "Position of the singularity",
"$ref": "#/definitions/MVector3"
},
"size": {
"type": "number",
"description": "Radius of the singularity. Note that this isn't the same as the event horizon, but includes the entire volume that\nhas warped effects in it.",
"format": "float",
"minimum": 0.0
},
"targetStarSystem": {
"type": "string",
"description": "If you want a black hole to load a new star system scene, put its name here."
},
"type": {
"description": "Type of singularity (white hole or black hole)",
"$ref": "#/definitions/SingularityType"
}
}
},
"SingularityType": {
"type": "string",
"description": "",
"x-enumNames": [
"BlackHole",
"WhiteHole"
],
"enum": [
"blackHole",
"whiteHole"
]
},
"SpawnModule": { "SpawnModule": {
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,