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 + 월