refac: 감찰부 vue3 재 작성 (#222)

- 장수 정보, 추가 정보 vue3 component
- b_battleCenter -> v_battleCenter

Reviewed-on: https://storage.hided.net/gitea/devsam/core/pulls/222
This commit was merged in pull request #222.
This commit is contained in:
2022-07-16 15:49:23 +09:00
parent 800106f9cb
commit 43a95979e1
16 changed files with 632 additions and 87 deletions
+27 -1
View File
@@ -1,4 +1,4 @@
import type { ValuesOf, TurnObj } from "@/defs";
import type { ValuesOf, TurnObj, NationStaticItem } from "@/defs";
import type { GameObjClassKey } from "@/defs/GameObj";
import type { ValidResponse } from "@/SammoAPI";
@@ -127,3 +127,29 @@ export type RawGeneralListP2 = ValidResponse & {
}
export type GeneralListResponse = RawGeneralListP0 | RawGeneralListP1 | RawGeneralListP2;
export type NationItem = NationStaticItem & {
gold: number;
rice: number;
bill: number;
rate: number;
secretlimit: number;
chief_set: number;
scout: number;
war: number;
strategic_cmd_limit: number;
surlimit: number;
tech: number;
}
export type LiteNationInfoResponse = ValidResponse & {
nation: NationStaticItem;
}
export type NationInfoResponse = (ValidResponse & {
nation: NationStaticItem;
}) | (ValidResponse &{
nation: NationItem;
impossibleStrategicCommandLists: [string, number][];
troops: Record<number, string>;
})