NationEntity 추가 정의

This commit is contained in:
2024-03-11 15:36:58 +00:00
parent e49408db2a
commit 1b2e062bb6
2 changed files with 81 additions and 2 deletions
+28 -1
View File
@@ -21,6 +21,8 @@ export type RegionID = number & { zz_t?: "RegionID" };
export type ServerID = number & { zz_t?: "ServerID" };
export type ScenarioID = number & { zz_t?: "ScenarioID" };
//TODO: 무언가의 keyof 로 바꿔야함
export type NationType = string & { zz_t?: "NationType" };
export type StrategicTurnType = string & { zz_t?: "StrategicTurnType" };
@@ -107,6 +109,16 @@ export const enum DiplomaticPermission {
ambassador = 2,
}
export const enum NationLevel {
= 0,
= 1,
= 2,
= 3,
= 4,
= 5,
= 6,
= 7,
}
export const enum CityLevel {
= 1,
@@ -131,6 +143,13 @@ export const enum FrontStatus {
NearEmpty = 3,
}
export type NationCmdType = string & { zz_t?: "NationCmdType" };
export type StrategicCmdType = string & { zz_t?: "StrategicCmdType" };
//string? const or? Enum?
export type ColorType = string & { zz_t?: "ColorType" };
//XXX: 기존처럼 값 하나만 유지할 것인가?
export const enum CityState {
//일반
@@ -227,4 +246,12 @@ export interface ReservedTurn {
action: string;
arg: Record<string, unknown>;
brief: string;
}
}
//특수 숫자 정의
//연 * 12 + 월
export type IntYearMonth = number & { zz_t?: "YearMonth" };
export type RemainMonth = number & { zz_t?: "RemainMonth" };
//1.0을 기준으로한 number 타입
export type Ratio = number & { zz_t?: "Ratio" };