feat: Global/GetDiplomacy 중원 정보 API

This commit is contained in:
2022-04-21 02:28:17 +09:00
parent 6d4fff970f
commit 34d17d3d81
3 changed files with 119 additions and 2 deletions
+10 -1
View File
@@ -1,5 +1,5 @@
import type { CityID, CrewTypeID, GameCityDefault, GameConstType, GameUnitType, GameIActionKey, GameIActionCategory, GameIActionInfo } from "@/defs/GameObj";
import type { MapResult } from "@/defs";
import type { diplomacyState, MapResult, SimpleNationObj } from "@/defs";
export interface GetConstResponse {
result: true;
@@ -67,4 +67,13 @@ export type GetHistoryResponse = {
export type GetCurrentHistoryResponse = {
result: true;
data: HistoryObj;
}
export type GetDiplomacyResponse = {
result: true;
nations: SimpleNationObj[];
conflict: [number, Record<number, number>][];
diplomacyList: Record<number, Record<number, diplomacyState>>;
myNationID: number;
}