api-docs/models/ShipModule.json
Space Admiral a27432248e - add warp endpoint
- rename ship symbol to ship type
- update ship modules and engines w/ new types
2022-12-18 15:04:13 -08:00

48 lines
1.1 KiB
JSON

{
"type": "object",
"description": "A module can be installed in a ship and provides a set of capabilities such as storage space or quarters for crew.",
"properties": {
"symbol": {
"type": "string",
"enum": [
"MODULE_MINERAL_PROCESSOR_I",
"MODULE_CARGO_HOLD_I",
"MODULE_CREW_QUARTERS_I",
"MODULE_ENVOY_QUARTERS_I",
"MODULE_PASSENGER_CABIN_I",
"MODULE_MICRO_REFINERY_I",
"MODULE_SCIENCE_LAB_I",
"MODULE_JUMP_DRIVE_I",
"MODULE_JUMP_DRIVE_II",
"MODULE_JUMP_DRIVE_III",
"MODULE_WARP_DRIVE_I",
"MODULE_WARP_DRIVE_II",
"MODULE_WARP_DRIVE_III",
"MODULE_SHIELD_GENERATOR_I",
"MODULE_SHIELD_GENERATOR_II"
]
},
"capacity": {
"type": "integer",
"minimum": 0
},
"range": {
"type": "integer",
"minimum": 0
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"requirements": {
"$ref": "./ShipRequirements.json"
}
},
"required": [
"symbol",
"name",
"requirements"
]
}