내무부, 금/쌀수입, 감찰부 구현

This commit is contained in:
2026-01-18 16:40:12 +00:00
parent bb618a9ade
commit 5b51aad6d0
15 changed files with 2705 additions and 143 deletions
+17
View File
@@ -0,0 +1,17 @@
export type DiplomacyState = 0 | 1 | 2 | 7;
export type DiplomacyInfo = {
name: string;
color?: string;
};
export const diplomacyStateInfo: Record<DiplomacyState, DiplomacyInfo> = {
0: { name: '교전', color: 'red' },
1: { name: '선포중', color: 'magenta' },
2: { name: '통상' },
7: { name: '불가침', color: 'green' },
};
export const resolveDiplomacyInfo = (state: number): DiplomacyInfo => {
return diplomacyStateInfo[state as DiplomacyState] ?? { name: '알 수 없음' };
};