타입 정의 상세
This commit is contained in:
@@ -12,4 +12,56 @@ export type NationID = number & { zz_t?: "NationID" };
|
||||
export type NationName = string & { zz_t?: "NationName" };
|
||||
|
||||
//TODO: 무언가의 keyof 로 바꿔야함
|
||||
export type NationType = string & { zz_t?: "NationType" };
|
||||
export type NationType = string & { zz_t?: "NationType" };
|
||||
export type StrategicTurnType = string & { zz_t?: "StrategicTurnType" };
|
||||
|
||||
/* 전용 stat이어서 확장하고자 하는경우 아래와 같이 확장 가능
|
||||
```ts
|
||||
declare module "@/defs.js" {
|
||||
export interface CalcStatNameBase {
|
||||
statName: unknown
|
||||
}
|
||||
|
||||
export interface CalcStatRangeNameBase {
|
||||
statName: unknown
|
||||
}
|
||||
}
|
||||
```
|
||||
*/
|
||||
|
||||
//필요할 때 확장
|
||||
export interface CalcStatNameBase {
|
||||
leadership: unknown,
|
||||
strength: unknown,
|
||||
intel: unknown,
|
||||
warCriticalRatio: unknown;
|
||||
}
|
||||
export type CalcStatName = keyof CalcStatNameBase;
|
||||
|
||||
//필요할 때 확장
|
||||
export interface CalcStatRangeNameBase {
|
||||
criticalDamageRange: unknown;
|
||||
}
|
||||
export type CalcStatRangeName = keyof CalcStatRangeNameBase;
|
||||
|
||||
export interface CalcStrategicVarTypeBase {
|
||||
globalDelay: unknown;
|
||||
}
|
||||
export type CalcStrategicVarType = keyof CalcStrategicVarTypeBase;
|
||||
|
||||
export interface CalcIncomeTypeBase {
|
||||
gold: unknown;
|
||||
rice: unknown;
|
||||
}
|
||||
export type CalcIncomeType = keyof CalcIncomeTypeBase;
|
||||
|
||||
export interface ArbitraryActionTypeBase {
|
||||
}
|
||||
export type ArbitraryActionType = keyof ArbitraryActionTypeBase;
|
||||
|
||||
export interface WarSkillNameBase {
|
||||
필살: unknown;
|
||||
회피불가: unknown;
|
||||
회피: unknown;
|
||||
}
|
||||
export type WarSkillName = keyof WarSkillNameBase;
|
||||
Reference in New Issue
Block a user