From 15da1158c78ee90faf6043408b27c4d32ef81cbf Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sun, 9 Jan 2022 00:30:47 -0600 Subject: [PATCH] Add a type for the fuel card representation --- common/src/index.ts | 1 + common/src/types/FuelCard.ts | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 common/src/types/FuelCard.ts diff --git a/common/src/index.ts b/common/src/index.ts index c211a31..25b9573 100644 --- a/common/src/index.ts +++ b/common/src/index.ts @@ -8,6 +8,7 @@ export * from "./types/Colour"; export * from "./types/Spaceship"; export * from "./types/PlayerData"; + export * from "./types/FuelCard"; // Server-Client Communications export * from "./types/ServerResponse"; diff --git a/common/src/types/FuelCard.ts b/common/src/types/FuelCard.ts new file mode 100644 index 0000000..dc1f116 --- /dev/null +++ b/common/src/types/FuelCard.ts @@ -0,0 +1,6 @@ +export interface FuelCard { + magnitude: number; + symbol: string; + name: string; + type: "movement" | "stationary"; +} \ No newline at end of file