fix(game-ui): 사령부 실제 지도 조회를 복구

This commit is contained in:
2026-08-21 02:26:59 +00:00
parent 69619236ba
commit 2a5f3a86fa
6 changed files with 380 additions and 4 deletions
@@ -55,7 +55,14 @@ const chiefApi = trpc as unknown as {
};
};
world: {
getMap: { query: () => Promise<CommandMapData> };
getMap: {
query: (input: {
generalId: number;
neutralView?: boolean;
showMe?: boolean;
useCache?: boolean;
}) => Promise<CommandMapData>;
};
getMapLayout: { query: () => Promise<CommandMapLayout> };
};
};
@@ -117,7 +124,7 @@ const loadCommandTable = async (generalId: number) => {
try {
const [nextCommandTable, nextWorldMap, nextMapLayout] = await Promise.all([
chiefApi.turns.getCommandTable.query({ generalId }),
chiefApi.world.getMap.query().catch(() => null),
chiefApi.world.getMap.query({ generalId, showMe: true, useCache: true }).catch(() => null),
chiefApi.world.getMapLayout.query().catch(() => null),
]);
commandTable.value = nextCommandTable;