feat: MapViewer와 API의 버전이 같을 때에만 지도 출력

This commit is contained in:
Hide_D committed 2022-04-21 23:51:03 +09:00
1 parent 01d5f2cda9
commit 85f801df4d
3 files changed
+21 -9

No files matched your search

+3
View File
@@ -230,11 +230,14 @@ export const diplomacyStateInfo: Record<diplomacyState, diplomacyInfo> = {
7: { name: '불가침', color: 'green' },
}
export const CURRENT_MAP_VERSION = 0 as const;
//Map
type MapCityCompact = [number, number, number, number, number, number];
type MapNationCompact = [number, string, string, number];
export type MapResult = {
result: true,
version?: typeof CURRENT_MAP_VERSION,
startYear: number,
year: number,
month: number,