diff options
Diffstat (limited to '')
-rw-r--r-- | nodejs/model/system.ts | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nodejs/model/system.ts b/nodejs/model/system.ts new file mode 100644 index 0000000..b90560f --- /dev/null +++ b/nodejs/model/system.ts @@ -0,0 +1,30 @@ +import { CommonThing } from 'common.ts'; + +export type Chart = { + waypointSymbol: string; + submittedBy: string; + submittedOn: Date; +}; + +export type System = { + symbol: string; + sectorSymbol: string; + type: string; + x: number; + y: number; + waypoints: Array<Waypoint>; +}; + +export type Waypoint = { + chart: Chart; + factions: Array<{symbol: string;}>; + isUnderConstruction: boolean; + modifiers: Array<CommonThing>; + orbitals: Array<{symbol: string;}>; + orbits: string; + symbol: string; + traits: Array<CommonThing>; + type: string; + x: number; + y: number; +}; |