From 74b4e955df32a1dcb023d89c80f6cb4292e3e899 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sat, 16 Mar 2024 15:04:50 +0000 Subject: [PATCH] =?UTF-8?q?wip=20ArgType=20=EC=A4=80=EB=B9=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- @sammo/game_logic/src/Command/ArgType.ts | 33 ++++++++++++++++++++++++ @sammo/game_logic/src/defs.ts | 10 +++++++ 2 files changed, 43 insertions(+) create mode 100644 @sammo/game_logic/src/Command/ArgType.ts diff --git a/@sammo/game_logic/src/Command/ArgType.ts b/@sammo/game_logic/src/Command/ArgType.ts new file mode 100644 index 0000000..c9bbf9e --- /dev/null +++ b/@sammo/game_logic/src/Command/ArgType.ts @@ -0,0 +1,33 @@ +import type { GeneralID } from "@/defs.js" + +//TODO: 작성!! + +export type DestGeneralArgType = { + destGeneralID: GeneralID; +} + +export type DestCityArgType = { + destCityID: string; +} + +export type DestNationArgType = { + destNationID: string; +} + +export type ColorArgType = { + color: string; +} + +export type TextArgType = { + text: string; +} + +export type ArmyTypeArgType = { + armyType: number; +} + +export type ArgType = + | DestGeneralArgType + | DestCityArgType + | DestNationArgType + ; \ No newline at end of file diff --git a/@sammo/game_logic/src/defs.ts b/@sammo/game_logic/src/defs.ts index 2b3b1bc..3e1e83f 100644 --- a/@sammo/game_logic/src/defs.ts +++ b/@sammo/game_logic/src/defs.ts @@ -251,6 +251,16 @@ export type LogType = 'action' | 'battleBrief' | 'battle' | 'history'; export type MessageType = 'private' | 'national' | 'public' | 'diplomacy' | 'system'; +export const enum ArmyClass { + //기병 + cavalry = 0, + //보병 + infantry = 1, + //궁병 + archer = 2, + + +} //특수 숫자 정의 //연 * 12 + 월