add enum for symbols

This commit is contained in:
Space Admiral 2022-12-04 08:38:00 -08:00
parent 15ae4a2ce6
commit eac54a6f69
14 changed files with 256 additions and 46 deletions

View File

@ -35,7 +35,42 @@
"ESTABLISHED", "ESTABLISHED",
"NOTABLE", "NOTABLE",
"DOMINANT", "DOMINANT",
"INESCAPABLE" "INESCAPABLE",
"INNOVATIVE",
"BOLD",
"VISIONARY",
"CURIOUS",
"DARING",
"EXPLORATORY",
"RESOURCEFUL",
"FLEXIBLE",
"COOPERATIVE",
"UNITED",
"STRATEGIC",
"INTELLIGENT",
"RESEARCH_FOCUSED",
"COLLABORATIVE",
"PROGRESSIVE",
"MILITARISTIC",
"TECHNOLOGICALLY_ADVANCED",
"AGGRESSIVE",
"IMPERIALISTIC",
"TREASURE_HUNTERS",
"DEXTEROUS",
"UNPREDICTABLE",
"BRUTAL",
"FLEETING",
"ADAPTABLE",
"SELF_SUFFICIENT",
"DEFENSIVE",
"PROUD",
"DIVERSE",
"INDEPENDENT",
"SELF_INTERESTED",
"FRAGMENTED",
"COMMERCIAL",
"FREE_MARKETS",
"ENTREPRENEURIAL"
] ]
}, },
"name": { "name": {

View File

@ -10,6 +10,10 @@
"type": "string", "type": "string",
"description": "The name of the cargo item type." "description": "The name of the cargo item type."
}, },
"description": {
"type": "string",
"description": "The description of the cargo item type."
},
"units": { "units": {
"type": "integer", "type": "integer",
"description": "The number of units of the cargo item.", "description": "The number of units of the cargo item.",
@ -19,6 +23,7 @@
"required": [ "required": [
"symbol", "symbol",
"name", "name",
"description",
"units" "units"
] ]
} }

View File

@ -5,15 +5,18 @@
"symbol": { "symbol": {
"type": "string", "type": "string",
"enum": [ "enum": [
"IMPULSE_DRIVE", "ENGINE_IMPULSE_DRIVE",
"ION_DRIVE_I", "ENGINE_ION_DRIVE_I",
"ION_DRIVE_II", "ENGINE_ION_DRIVE_II",
"HYPER_DRIVE" "ENGINE_HYPER_DRIVE"
] ]
}, },
"name": { "name": {
"type": "string" "type": "string"
}, },
"description": {
"type": "string"
},
"condition": { "condition": {
"$ref": "./ShipCondition.json" "$ref": "./ShipCondition.json"
}, },

View File

@ -5,6 +5,7 @@
"symbol": { "symbol": {
"type": "string", "type": "string",
"enum": [ "enum": [
"FRAME_PROBE",
"FRAME_DRONE", "FRAME_DRONE",
"FRAME_INTERCEPTOR", "FRAME_INTERCEPTOR",
"FRAME_RACER", "FRAME_RACER",
@ -23,6 +24,9 @@
"name": { "name": {
"type": "string" "type": "string"
}, },
"description": {
"type": "string"
},
"condition": { "condition": {
"$ref": "./ShipCondition.json" "$ref": "./ShipCondition.json"
}, },

View File

@ -5,20 +5,26 @@
"symbol": { "symbol": {
"type": "string", "type": "string",
"enum": [ "enum": [
"MODULE_PASSENGER_CABIN",
"MODULE_ENVOY_QUARTERS",
"MODULE_MICRO_REFINERY",
"MODULE_MINERAL_PROCESSOR", "MODULE_MINERAL_PROCESSOR",
"MODULE_CARGO_HOLD", "MODULE_CARGO_HOLD",
"MODULE_CREW_QUARTERS",
"MODULE_ENVOY_QUARTERS",
"MODULE_PASSENGER_CABIN",
"MODULE_MICRO_REFINERY",
"MODULE_SCIENCE_LAB",
"MODULE_JUMP_DRIVE_I", "MODULE_JUMP_DRIVE_I",
"MODULE_JUMP_DRIVE_II", "MODULE_JUMP_DRIVE_II",
"MODULE_JUMP_DRIVE_III", "MODULE_JUMP_DRIVE_III",
"MODULE_CREW_QUARTERS" "MODULE_SHIELD_GENERATOR_I",
"MODULE_SHIELD_GENERATOR_II"
] ]
}, },
"name": { "name": {
"type": "string" "type": "string"
}, },
"description": {
"type": "string"
},
"requirements": { "requirements": {
"$ref": "./ShipRequirements.json" "$ref": "./ShipRequirements.json"
} }

View File

@ -13,12 +13,18 @@
"MOUNT_SENSOR_ARRAY_III", "MOUNT_SENSOR_ARRAY_III",
"MOUNT_MINING_LASER_I", "MOUNT_MINING_LASER_I",
"MOUNT_MINING_LASER_II", "MOUNT_MINING_LASER_II",
"MOUNT_MINING_LASER_III" "MOUNT_MINING_LASER_III",
"MOUNT_LASER_CANNON_I",
"MOUNT_MISSILE_LAUNCHER_I",
"MOUNT_TURRET_I"
] ]
}, },
"name": { "name": {
"type": "string" "type": "string"
}, },
"description": {
"type": "string"
},
"requirements": { "requirements": {
"$ref": "./ShipRequirements.json" "$ref": "./ShipRequirements.json"
} }

View File

@ -5,16 +5,19 @@
"symbol": { "symbol": {
"type": "string", "type": "string",
"enum": [ "enum": [
"SOLAR_REACTOR", "REACTOR_SOLAR_I",
"FUSION_REACTOR", "REACTOR_FUSION_I",
"FISSION_REACTOR", "REACTOR_FISSION_I",
"CHEMICAL_REACTOR", "REACTOR_CHEMICAL_I",
"DARK_MATTER_REACTOR" "REACTOR_ANTIMATTER_I"
] ]
}, },
"name": { "name": {
"type": "string" "type": "string"
}, },
"description": {
"type": "string"
},
"condition": { "condition": {
"$ref": "./ShipCondition.json" "$ref": "./ShipCondition.json"
}, },

View File

@ -1,17 +1,4 @@
{ {
"type": "string", "type": "string",
"description": "The registered role of the ship", "description": "The registered role of the ship"
"enum": [
"FABRICATOR",
"HARVESTER",
"HAULER",
"EXCAVATOR",
"TRANSPORT",
"REPAIR",
"SURVEYOR",
"COMMAND",
"CARRIER",
"PATROL",
"SATELLITE"
]
} }

View File

@ -4,7 +4,23 @@
"properties": { "properties": {
"symbol": { "symbol": {
"type": "string", "type": "string",
"minLength": 1 "enum": [
"SHIP_PROBE_SATELLITE",
"SHIP_MINING_DRONE",
"SHIP_INTERCEPTOR",
"SHIP_LIGHT_HAULER",
"SHIP_COMMAND_FRIGATE",
"SHIP_EXPLORER",
"SHIP_HEAVY_FREIGHTER",
"SHIP_LIGHT_SHUTTLE",
"SHIP_ORE_HOUND"
]
},
"name": {
"type": "string"
},
"description": {
"type": "string"
}, },
"purchasePrice": { "purchasePrice": {
"type": "integer" "type": "integer"
@ -33,6 +49,8 @@
}, },
"required": [ "required": [
"symbol", "symbol",
"name",
"description",
"purchasePrice", "purchasePrice",
"frame", "frame",
"reactor", "reactor",

View File

@ -11,19 +11,7 @@
"minLength": 1 "minLength": 1
}, },
"type": { "type": {
"type": "string", "$ref": "./SystemType.json"
"enum": [
"NEUTRON_STAR",
"RED_STAR",
"ORANGE_STAR",
"BLUE_STAR",
"YOUNG_STAR",
"WHITE_DWARF",
"BLACK_HOLE",
"HYPERGIANT",
"NEBULA",
"UNSTABLE"
]
}, },
"x": { "x": {
"type": "integer" "type": "integer"

16
models/SystemType.json Normal file
View File

@ -0,0 +1,16 @@
{
"type": "string",
"description": "The type of waypoint.",
"enum": [
"NEUTRON_STAR",
"RED_STAR",
"ORANGE_STAR",
"BLUE_STAR",
"YOUNG_STAR",
"WHITE_DWARF",
"BLACK_HOLE",
"HYPERGIANT",
"NEBULA",
"UNSTABLE"
]
}

134
models/TradeGood.json Normal file
View File

@ -0,0 +1,134 @@
{
"symbol": {
"type": "string",
"enum": [
"PRECIOUS_STONES",
"QUARTZ_SAND",
"SILICON_CRYSTALS",
"AMMONIA_ICE",
"LIQUID_HYDROGEN",
"LIQUID_NITROGEN",
"ICE_WATER",
"EXOTIC_MATTER",
"ADVANCED_CIRCUITRY",
"GRAVITON_EMITTERS",
"IRON",
"IRON_ORE",
"COPPER",
"COPPER_ORE",
"ALUMINUM",
"ALUMINUM_ORE",
"SILVER",
"SILVER_ORE",
"GOLD",
"GOLD_ORE",
"PLATINUM",
"PLATINUM_ORE",
"DIAMONDS",
"URANITE",
"URANITE_ORE",
"MERITIUM",
"MERITIUM_ORE",
"HYDROCARBON",
"ANTIMATTER",
"FERTILIZERS",
"FABRICS",
"FOOD",
"JEWELRY",
"MACHINERY",
"FIREARMS",
"ASSAULT_RIFLES",
"MILITARY_EQUIPMENT",
"EXPLOSIVES",
"LAB_INSTRUMENTS",
"AMMUNITION",
"ELECTRONICS",
"SHIP_PLATING",
"EQUIPMENT",
"FUEL",
"MEDICINE",
"DRUGS",
"CLOTHING",
"MICROPROCESSORS",
"PLASTICS",
"POLYNUCLEOTIDES",
"BIOCOMPOSITES",
"NANOBOTS",
"AI_MAINFRAMES",
"QUANTUM_DRIVES",
"ROBOTIC_DRONES",
"CYBER_IMPLANTS",
"GENE_THERAPEUTICS",
"NEURAL_CHIPS",
"MOOD_REGULATORS",
"VIRAL_AGENTS",
"MICRO_FUSION_GENERATORS",
"SUPERGRAINS",
"LASER_RIFLES",
"HOLOGRAPHICS",
"SHIP_SALVAGE",
"RELIC_TECH",
"NOVEL_LIFEFORMS",
"BOTANICAL_SPECIMENS",
"CULTURAL_ARTIFACTS",
"FRAME_PROBE",
"FRAME_DRONE",
"FRAME_INTERCEPTOR",
"FRAME_RACER",
"FRAME_FIGHTER",
"FRAME_FRIGATE",
"FRAME_SHUTTLE",
"FRAME_EXPLORER",
"FRAME_LIGHT_FREIGHTER",
"FRAME_HEAVY_FREIGHTER",
"FRAME_TRANSPORT",
"FRAME_DESTROYER",
"FRAME_CRUISER",
"FRAME_CARRIER",
"REACTOR_SOLAR_I",
"REACTOR_FUSION_I",
"REACTOR_FISSION_I",
"REACTOR_CHEMICAL_I",
"REACTOR_ANTIMATTER_I",
"ENGINE_IMPULSE_DRIVE",
"ENGINE_ION_DRIVE_I",
"ENGINE_ION_DRIVE_II",
"ENGINE_HYPER_DRIVE",
"MODULE_MINERAL_PROCESSOR",
"MODULE_CARGO_HOLD",
"MODULE_CREW_QUARTERS",
"MODULE_ENVOY_QUARTERS",
"MODULE_PASSENGER_CABIN",
"MODULE_MICRO_REFINERY",
"MODULE_SCIENCE_LAB",
"MODULE_JUMP_DRIVE_I",
"MODULE_JUMP_DRIVE_II",
"MODULE_JUMP_DRIVE_III",
"MODULE_SHIELD_GENERATOR_I",
"MODULE_SHIELD_GENERATOR_II",
"MOUNT_GAS_SIPHON_I",
"MOUNT_GAS_SIPHON_II",
"MOUNT_GAS_SIPHON_III",
"MOUNT_SENSOR_ARRAY_I",
"MOUNT_SENSOR_ARRAY_II",
"MOUNT_SENSOR_ARRAY_III",
"MOUNT_MINING_LASER_I",
"MOUNT_MINING_LASER_II",
"MOUNT_MINING_LASER_III",
"MOUNT_LASER_CANNON_I",
"MOUNT_MISSILE_LAUNCHER_I",
"MOUNT_TURRET_I"
]
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"required": [
"symbol",
"name",
"description"
]
}

View File

@ -6,6 +6,8 @@
"description": "The unique identifier of the trait.", "description": "The unique identifier of the trait.",
"enum": [ "enum": [
"UNCHARTED", "UNCHARTED",
"MARKETPLACE",
"SHIPYARD",
"OUTPOST", "OUTPOST",
"SCATTERED_SETTLEMENTS", "SCATTERED_SETTLEMENTS",
"SPRAWLING_CITIES", "SPRAWLING_CITIES",
@ -28,6 +30,7 @@
"METHANE_POOLS", "METHANE_POOLS",
"ICE_CRYSTALS", "ICE_CRYSTALS",
"EXPLOSIVE_GASES", "EXPLOSIVE_GASES",
"STRONG_MAGNETOSPHERE",
"VIBRANT_AURORAS", "VIBRANT_AURORAS",
"SALT_FLATS", "SALT_FLATS",
"CANYONS", "CANYONS",
@ -39,6 +42,9 @@
"ASH_CLOUDS", "ASH_CLOUDS",
"VAST_RUINS", "VAST_RUINS",
"MUTATED_FLORA", "MUTATED_FLORA",
"TERRAFORMED",
"EXTREME_TEMPERATURES",
"EXTREME_PRESSURE",
"DIVERSE_LIFE", "DIVERSE_LIFE",
"SCARCE_LIFE", "SCARCE_LIFE",
"FOSSILS", "FOSSILS",
@ -48,7 +54,6 @@
"TOXIC_ATMOSPHERE", "TOXIC_ATMOSPHERE",
"CORROSIVE_ATMOSPHERE", "CORROSIVE_ATMOSPHERE",
"BREATHABLE_ATMOSPHERE", "BREATHABLE_ATMOSPHERE",
"COMM_RELAY_I",
"JOVIAN", "JOVIAN",
"ROCKY", "ROCKY",
"VOLCANIC", "VOLCANIC",

View File

@ -8,8 +8,8 @@
"ORBITAL_STATION", "ORBITAL_STATION",
"JUMP_GATE", "JUMP_GATE",
"ASTEROID_FIELD", "ASTEROID_FIELD",
"NEBULA",
"DEBRIS_FIELD", "DEBRIS_FIELD",
"GRAVITY_WELL", "GRAVITY_WELL"
"NEBULA"
] ]
} }