summaryrefslogtreecommitdiff
path: root/nodejs/lib/types.ts
diff options
context:
space:
mode:
authorJulien Dessaux2024-05-20 22:50:33 +0200
committerJulien Dessaux2024-05-20 22:50:33 +0200
commit4cb5c7853c75eb3d9e99a525065f0816ebb5dd62 (patch)
tree78d2ad16754ca7d105765377f64fae7e9ea19083 /nodejs/lib/types.ts
parent[node] fixed and optimized contracting (diff)
downloadspacetraders-4cb5c7853c75eb3d9e99a525065f0816ebb5dd62.tar.gz
spacetraders-4cb5c7853c75eb3d9e99a525065f0816ebb5dd62.tar.bz2
spacetraders-4cb5c7853c75eb3d9e99a525065f0816ebb5dd62.zip
[node] implement shipyard info retrieval and database caching
Diffstat (limited to 'nodejs/lib/types.ts')
-rw-r--r--nodejs/lib/types.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/nodejs/lib/types.ts b/nodejs/lib/types.ts
index 4f15d70..e03e5a7 100644
--- a/nodejs/lib/types.ts
+++ b/nodejs/lib/types.ts
@@ -80,6 +80,29 @@ export type RouteEndpoint = {
y: number;
};
+export type Shipyard = {
+ modificationFee: number;
+ ships: Array<ShipyardShip>;
+ shipTypes: Array<{type: string}>;
+ symbol: string;
+ //transactions: Array<Transaction>;
+};
+
+export type ShipyardShip = {
+ activity: string;
+ // crew
+ description: string;
+ // engine
+ // frame
+ // modules
+ // mounts
+ name: string;
+ purchasePrice: number;
+ // reactor
+ supply: string;
+ type: string;
+};
+
export type System = {
symbol: string;
sectorSymbol: string;