js2ts: diplomacy

- select2 관련 문제 해결?
This commit is contained in:
2021-08-30 00:27:04 +09:00
parent 604b1557e8
commit a6ff951c98
4 changed files with 534 additions and 5 deletions
+36 -1
View File
@@ -20,7 +20,7 @@ export type GeneralListResponse = {
result: true,
list: [
number,
string, 0|1,
string, 0 | 1,
number, number, string,
string, string, string,
string, string | null,
@@ -31,4 +31,39 @@ export type GeneralListResponse = {
number, number
][],
token: Record<number, number>,
}
export type NationLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
export const NationLevelText: Record<NationLevel, string> = {
0: '방랑군',
1: '호족',
2: '군벌',
3: '주자사',
4: '주목',
5: '공',
6: '왕',
7: '황제',
}
export type CityLevel = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
export const CityLevelText: Record<CityLevel, string> = {
1: '수',
2: '진',
3: '관',
4: '이',
5: '소',
6: '중',
7: '대',
8: '특'
}
export type NationStaticItem = {
nation: number,
name: string,
color: string,
type: string,
level: NationLevel,
capital: number,
gennum: number,
power: number,
}