misc: 추가
This commit is contained in:
@@ -293,6 +293,8 @@ declare const staticValues: {
|
|||||||
}[],
|
}[],
|
||||||
serverNow: string,
|
serverNow: string,
|
||||||
serverNick: string,
|
serverNick: string,
|
||||||
|
mapName: string,
|
||||||
|
unitSet: string,
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -745,7 +747,7 @@ watch(isEditMode, newEditMode => {
|
|||||||
|
|
||||||
const emptyTurnObj: TurnObj = { action: '휴식', brief: '휴식', arg: {} };
|
const emptyTurnObj: TurnObj = { action: '휴식', brief: '휴식', arg: {} };
|
||||||
|
|
||||||
const storedActionsHelper = new StoredActionsHelper(staticValues.serverNick, 'general');
|
const storedActionsHelper = new StoredActionsHelper(staticValues.serverNick, 'general', staticValues.mapName, staticValues.unitSet);
|
||||||
|
|
||||||
const recentActions = storedActionsHelper.recentActions;
|
const recentActions = storedActionsHelper.recentActions;
|
||||||
const storedActions = storedActionsHelper.storedActions;
|
const storedActions = storedActionsHelper.storedActions;
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ import type { ReserveCommandResponse } from './defs';
|
|||||||
declare const staticValues: {
|
declare const staticValues: {
|
||||||
serverNick: string,
|
serverNick: string,
|
||||||
turnList: number[],
|
turnList: number[],
|
||||||
|
mapName: string,
|
||||||
|
unitSet: string,
|
||||||
};
|
};
|
||||||
|
|
||||||
const { turnList } = staticValues;
|
const { turnList } = staticValues;
|
||||||
@@ -35,7 +37,7 @@ async function submitCommand<T extends ReserveCommandResponse>(isChiefTurn: bool
|
|||||||
arg,
|
arg,
|
||||||
});
|
});
|
||||||
|
|
||||||
const storedActionsHelper = new StoredActionsHelper(staticValues.serverNick, isChiefTurn?'nation':'general');
|
const storedActionsHelper = new StoredActionsHelper(staticValues.serverNick, isChiefTurn?'nation':'general', staticValues.mapName, staticValues.unitSet);
|
||||||
|
|
||||||
const response = await responseP;
|
const response = await responseP;
|
||||||
storedActionsHelper.pushRecentActions({
|
storedActionsHelper.pushRecentActions({
|
||||||
|
|||||||
@@ -83,13 +83,15 @@ if (!$commandObj->hasPermissionToReserve()) {
|
|||||||
'turnList' => $turnList,
|
'turnList' => $turnList,
|
||||||
'currentCity' => $general->getCityID(),
|
'currentCity' => $general->getCityID(),
|
||||||
'currentNation' => $general->getNationID(),
|
'currentNation' => $general->getNationID(),
|
||||||
'entryInfo' => [$isChiefTurn?'Nation':'General', $commandType]
|
'entryInfo' => [$isChiefTurn?'Nation':'General', $commandType],
|
||||||
|
'mapName' => GameConst::$mapName,
|
||||||
|
'unitSet' => GameConst::$unitSet,
|
||||||
],
|
],
|
||||||
'commandName' => $commandObj->getName(),
|
'commandName' => $commandObj->getName(),
|
||||||
'turnList' => $turnList,
|
'turnList' => $turnList,
|
||||||
'currentCity' => $general->getCityID(),
|
'currentCity' => $general->getCityID(),
|
||||||
'currentNation' => $general->getNationID(),
|
'currentNation' => $general->getNationID(),
|
||||||
'entryInfo' => [$isChiefTurn?'Nation':'General', $commandType]
|
'entryInfo' => [$isChiefTurn?'Nation':'General', $commandType],
|
||||||
])?>
|
])?>
|
||||||
<?= WebUtil::printStaticValues($commandObj->exportJSVars(), false) ?>
|
<?= WebUtil::printStaticValues($commandObj->exportJSVars(), false) ?>
|
||||||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css" />
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css" />
|
||||||
|
|||||||
Reference in New Issue
Block a user