feat: 변경된 베팅 방식에 따라 결과 표기

This commit was merged in pull request #205.
This commit is contained in:
2022-02-05 07:43:28 +00:00
committed by Gitea
parent 3d6f8c6304
commit ef339566a5
3 changed files with 470 additions and 278 deletions
+22
View File
@@ -223,3 +223,25 @@ export const diplomacyStateInfo: Record<diplomacyState, diplomacyInfo> = {
2: { name: '통상' },
7: { name: '불가침', color: 'green' },
}
export type SelectItem = {
title: string;
info?: string;
isHtml?: boolean;
aux?: Record<string, unknown>;
}
export type BettingInfo = {
id: number;
type: 'nationBetting',
name: string;
finished: boolean;
selectCnt: number;
isExclusive?: boolean;
reqInheritancePoint: boolean;
openYearMonth: number;
closeYearMonth: number;
candidates: SelectItem[];
winner?: number[];
}