From b63bd8cca21c18a99cc5b2260a5514e633b5a3b9 Mon Sep 17 00:00:00 2001 From: BillMo Date: Thu, 21 Sep 2023 19:19:16 +0800 Subject: [PATCH] :label: add card base type (#40) * :label: add card base type * :label: add creatures --- packages/domain_layer/src/card/index.ts | 1 + packages/domain_layer/src/card/type.ts | 21 +++++++++++++++++++++ packages/domain_layer/src/index.ts | 1 + 3 files changed, 23 insertions(+) create mode 100644 packages/domain_layer/src/card/index.ts create mode 100644 packages/domain_layer/src/card/type.ts diff --git a/packages/domain_layer/src/card/index.ts b/packages/domain_layer/src/card/index.ts new file mode 100644 index 0000000..b38ebc9 --- /dev/null +++ b/packages/domain_layer/src/card/index.ts @@ -0,0 +1 @@ +export * from './type'; diff --git a/packages/domain_layer/src/card/type.ts b/packages/domain_layer/src/card/type.ts new file mode 100644 index 0000000..d699941 --- /dev/null +++ b/packages/domain_layer/src/card/type.ts @@ -0,0 +1,21 @@ +export enum Creatures { + Bat = 'BAT', + Cockroach = 'COCKROACH', + Fly = 'FLY', + Toad = 'TOAD', + Rat = 'RAT', + Scorpion = 'SCORPION', + Spider = 'SPIDER', + StickBug = 'STICK_BUG', +} + +export enum Status { + Unrevealed = 'UNREVEALED', + Revealed = 'REVEALED', +} + +export type Card = { + id: string; + status: Status; + creature: Creatures; +}; diff --git a/packages/domain_layer/src/index.ts b/packages/domain_layer/src/index.ts index fa843d9..cb14d9f 100644 --- a/packages/domain_layer/src/index.ts +++ b/packages/domain_layer/src/index.ts @@ -1,3 +1,4 @@ export * as game from './game'; export * as round from './round'; export * as player from './player'; +export * as card from './card';