CityEntity
This commit is contained in:
@@ -1,7 +1,75 @@
|
||||
import type { CityID, CityName, NationID } from "../defs.js";
|
||||
import type { CityID, CityLevel, CityName, CityOfficerLevel, CityState, FrontStatus, NationID, RegionID } from "../defs.js";
|
||||
|
||||
|
||||
export interface ICityEntity{
|
||||
id: CityID;
|
||||
name: CityName;
|
||||
nationID: NationID;
|
||||
|
||||
level: CityLevel;
|
||||
|
||||
//보급품 있음
|
||||
hasSupply: boolean;
|
||||
|
||||
//도시 접경 상태
|
||||
frontStatus: FrontStatus;
|
||||
|
||||
//인구
|
||||
population: {
|
||||
current: number;
|
||||
max: number;
|
||||
}
|
||||
|
||||
//농업
|
||||
agriculture: {
|
||||
current: number;
|
||||
max: number;
|
||||
}
|
||||
|
||||
//상업
|
||||
commerce: {
|
||||
current: number;
|
||||
max: number;
|
||||
}
|
||||
|
||||
//치안
|
||||
security: {
|
||||
current: number;
|
||||
max: number;
|
||||
}
|
||||
|
||||
//민도
|
||||
loyalty: {
|
||||
current: number;
|
||||
max: 100;
|
||||
}
|
||||
|
||||
//수비병
|
||||
defence: {
|
||||
current: number;
|
||||
max: number;
|
||||
}
|
||||
|
||||
//성벽
|
||||
wall: {
|
||||
current: number;
|
||||
max: number;
|
||||
}
|
||||
|
||||
//전투 사망자 수(혹은 패잔병)
|
||||
battleDeath: number;
|
||||
|
||||
//상인 존재 및 거래율, base 1
|
||||
trader?: number;
|
||||
|
||||
officerSet: Record<CityOfficerLevel, boolean>;
|
||||
|
||||
regionID: RegionID;
|
||||
|
||||
state: CityState;
|
||||
//전투 잔여 개월
|
||||
remainWarMonth: number;
|
||||
|
||||
//국가별 수비병 사살 수
|
||||
conflict: Record<NationID, number>;
|
||||
}
|
||||
Reference in New Issue
Block a user