Added star_system_schema.json

This commit is contained in:
Ben C 2022-03-01 16:57:59 -05:00
parent 3b635d164d
commit 1e9a49b301
2 changed files with 450 additions and 431 deletions

View File

@ -44,26 +44,26 @@
}
}
},
"colourPart": {
"colorPart": {
"type": "integer",
"default": 0,
"minimum": 0,
"maximum": 255
},
"colour": {
"color": {
"type": "object",
"properties": {
"R": {
"$ref": "#/$defs/colourPart"
"$ref": "#/$defs/colorPart"
},
"G": {
"$ref": "#/$defs/colourPart"
"$ref": "#/$defs/colorPart"
},
"B": {
"$ref": "#/$defs/colourPart"
"$ref": "#/$defs/colorPart"
},
"A": {
"$ref": "#/$defs/colourPart"
"$ref": "#/$defs/colorPart"
}
}
},
@ -98,7 +98,7 @@
"description": "Average surface size"
},
"colour": {
"$ref": "#/$defs/colour",
"$ref": "#/$defs/color",
"description": "Colour of the terrain."
}
}
@ -195,7 +195,7 @@
"description": "Scale height of the atmosphere"
},
"cloudTint": {
"$ref": "#/$defs/colour"
"$ref": "#/$defs/color"
},
"cloud": {
"type": "string",
@ -220,7 +220,7 @@
"description": "If the top layer should have shadows"
},
"fogTint": {
"$ref": "#/$defs/colour",
"$ref": "#/$defs/color",
"description": "Colour of fog on the planet."
},
"fogDensity": {
@ -251,7 +251,7 @@
"description": "Whether we use an atmospheric shader on the planet."
},
"atmosphereTint": {
"$ref": "#/$defs/colour",
"$ref": "#/$defs/color",
"description": "Colour of atmospheric shader on the planet."
}
}
@ -315,7 +315,7 @@
"description": "Is the body meant to stay in one place without moving?"
},
"tint": {
"$ref": "#/$defs/colour",
"$ref": "#/$defs/color",
"description": "Colour of the orbit-line in the map view."
},
"trackingOrbitLine": {
@ -420,15 +420,15 @@
"minimum": 0
},
"tint": {
"$ref": "#/$defs/colour",
"$ref": "#/$defs/color",
"description": "Colour of the star."
},
"solarFlareTint": {
"$ref": "#/$defs/colour",
"$ref": "#/$defs/color",
"description": "Colour of the solar flares."
},
"lightTint": {
"$ref": "#/$defs/colour",
"$ref": "#/$defs/color",
"description": "Colour of the light given off."
},
"solarLuminosity": {
@ -492,7 +492,6 @@
}
}
}
}
},
"details": {
"type": "array",
@ -534,7 +533,6 @@
"default": 1
}
}
}
},
"dialogue": {
"type": "array",
@ -618,6 +616,7 @@
}
}
}
}
},
"Spawn": {
"type": "object",
@ -739,7 +738,7 @@
"default": 0
},
"tint": {
"$ref": "#/$defs/colour"
"$ref": "#/$defs/color"
},
"curve": {
"$ref": "#/$defs/curve"
@ -754,7 +753,7 @@
"default": 0
},
"tint": {
"$ref": "#/$defs/colour"
"$ref": "#/$defs/color"
},
"curve": {
"$ref": "#/$defs/curve"
@ -769,7 +768,7 @@
"default": 0
},
"tint": {
"$ref": "#/$defs/colour"
"$ref": "#/$defs/color"
},
"curve": {
"$ref": "#/$defs/curve"
@ -794,7 +793,7 @@
"default": "Sand"
},
"tint": {
"$ref": "#/$defs/colour"
"$ref": "#/$defs/color"
},
"curve": {
"$ref": "#/$defs/curve"
@ -889,7 +888,7 @@
"description": "The sprite to show when the parent AstroBody is rumored/unexplored"
},
"rotation": {
"$ref": "#/$defs/angle",
"$refs": "#/$defs/angle",
"description": "The angle in degrees to rotate the detail"
},
"invisibleWhenHidden": {
@ -912,21 +911,22 @@
},
"Curiosities": {
"type": "array",
"description": "A set of colours to apply to curiosities",
"description": "A set of colors to apply to curiosities",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The ID of the curiosity to apply the colour to"
"description": "The ID of the curiosity to apply the color to"
},
"colour": {
"$ref": "#/$defs/colour",
"description": "The colour to apply to entries with this curiosity"
"color": {
"$ref": "#/$defs/color",
"description": "The color to apply to entries with this curiosity"
},
"highlightColour": {
"$ref": "#/$defs/colour",
"description": "The colour to apply to highlighted entries with this curiosity"
"highlightColor": {
"$ref": "#/$defs/color",
"description": "The color to apply to highlighted entries with this curiosity"
}
}
}
}

View File

@ -0,0 +1,19 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Configuration for a specific star system",
"properties": {
"canEnterViaWarpDrive": {
"type": "boolean",
"description": "Whether this system can be warped to via the warp drive"
},
"startHere": {
"type": "boolean",
"description": "Set to true if you want to spawn here after dying, not Timber Hearth. You can still warp back to the main star system."
},
"factRequiredForWarp": {
"type": "string",
"description": "Set to the FactID that must be revealed before it can be warped to. Don't set \"CanEnterViaWarpDrive\" to false if you're using this, that would make no sense."
}
}
}