refac: 값 정리
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user