Protocols/define/enum.ts

54 lines
683 B
TypeScript
Raw Normal View History

2023-09-10 19:33:38 +08:00
export enum EGameState {
2023-09-11 14:56:22 +08:00
/** 準備 */
2023-09-11 12:14:29 +08:00
Ready,
2023-09-11 14:56:22 +08:00
/** 等待回合 */
2023-09-11 12:14:29 +08:00
Wait,
2023-09-11 14:56:22 +08:00
/** 等待回合 */
2023-09-10 19:33:38 +08:00
TurnCards,
2023-09-11 14:56:22 +08:00
/** 看圖 */
2023-09-10 19:33:38 +08:00
ImageViewer,
2023-09-11 14:56:22 +08:00
/** 選擇卡片回合 */
2023-09-10 19:33:38 +08:00
ChooseCards,
2023-09-11 14:56:22 +08:00
/** 確定選擇卡片 */
ChooseCard,
/** 回合結束 */
TurnEnd,
2023-09-15 11:13:41 +08:00
/** 遊戲結束 */
GameOver,
/** 等待開新遊戲 */
WaitNewGame,
2023-09-11 12:14:29 +08:00
MyReady = 100,
MyWait,
2023-09-10 19:33:38 +08:00
MyTurnCards,
MyImageViewer,
MyChooseCards,
2023-09-11 14:56:22 +08:00
MyChooseCard,
MyTurnEnd,
2023-09-10 19:33:38 +08:00
2023-09-11 12:14:29 +08:00
OtherReady = 200,
OtherWait,
OtherTurnCards,
2023-09-10 19:33:38 +08:00
OtherImageViewer,
OtherChooseCards,
2023-09-11 14:56:22 +08:00
OtherChooseCard,
OtherTurnEnd,
2024-01-10 11:26:00 +08:00
}
export enum EGameType {
2024-01-12 11:58:59 +08:00
foreigners,
transportation,
mythologyfigure,
historicalfigure,
fruit,
profession,
animal,
animal2
2023-09-10 19:33:38 +08:00
}