wip ArgType 준비

This commit is contained in:
2024-03-16 15:04:50 +00:00
parent 1aee0f7881
commit 74b4e955df
2 changed files with 43 additions and 0 deletions
+33
View File
@@ -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
;
+10
View File
@@ -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 + 월