Skip to content

Commit

Permalink
🏷️ add card base type (#40)
Browse files Browse the repository at this point in the history
* 🏷️ add card base type

* 🏷️ add creatures
  • Loading branch information
Dlutermade authored Sep 21, 2023
1 parent e7f6620 commit b63bd8c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/domain_layer/src/card/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './type';
21 changes: 21 additions & 0 deletions packages/domain_layer/src/card/type.ts
Original file line number Diff line number Diff line change
@@ -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;
};
1 change: 1 addition & 0 deletions packages/domain_layer/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * as game from './game';
export * as round from './round';
export * as player from './player';
export * as card from './card';

0 comments on commit b63bd8c

Please sign in to comment.