refac: 값 정리

This commit is contained in:
2024-03-09 05:58:17 +00:00
parent 3ba5793755
commit 66c8261438
7 changed files with 104 additions and 9 deletions
@@ -0,0 +1,38 @@
export type UnitedGameState = 'onGame' | 'united' | 'onEvent' | 'endEvent';
export interface IGameEnvEntity {
startTime: Date;
lastExecuted: Date;
initYear: number;
initMonth: number;
gameStartYear: number;
gameStartMonth: number;
year: number;
month: number;
turntermSec: number;
refreshedKillTurn: number;
isFictionMode: boolean;
unitedGameState: UnitedGameState;
blockGeneralCreate: boolean;
mapTheme: string;
prevWinnerName?: string;
scenarioID: number;
scenarioName: string;
gameSeason: number;
maxGeneralCnt: number;
maxNationCnt: number;
remainGeniusCnt: number;
autorunUserPolicy: Record<string, unknown>;
//게임 외부는 다른 엔티티로 분리
}
@@ -55,7 +55,12 @@ export interface IGeneralEntity {
specialityDomestic: SpecialityDomesticType;
specialityWar: SpecialityWarType;
defenceTrain: number;
defenceTrained: number;
crewType: number;
crew: number;
trained: number;
morale: number;
npcSpec?: {
msg?: string;
+5 -2
View File
@@ -3,6 +3,7 @@ import type { ICityEntity } from './CityEntity.js';
import type { IGeneralEntity } from './GeneralEntity.js';
import type { INationEntity } from './NationEntity.js';
import type { ITroopEntity } from './TroopEntity.js';
import type { IGameEnvEntity } from './GameEnvEntity.js';
export type { IGeneralEntity } from './GeneralEntity.js';
export type { ICityEntity } from './CityEntity.js';
@@ -11,10 +12,12 @@ export type { INationEntity } from './NationEntity.js';
export type ValidEntityList = {
'General': IGeneralEntity;
'City': ICityEntity;
'Nation': INationEntity;
'City': ICityEntity;
'Troop': ITroopEntity;
'General': IGeneralEntity;
'GameEnv': IGameEnvEntity;
};
export type ValidEntity = ValuesOf<ValidEntityList>;