feat: add reserved command argument forms

This commit is contained in:
2026-07-26 09:05:17 +00:00
parent f84efafc9a
commit 919a2fccda
9 changed files with 719 additions and 43 deletions
@@ -375,7 +375,7 @@ export const useMainDashboardStore = defineStore('mainDashboard', () => {
}
};
const setGeneralTurn = async (turnIndex: number, action: string) => {
const setGeneralTurn = async (turnIndex: number, action: string, args: Record<string, unknown> = {}) => {
const id = generalId.value;
if (!id) {
return;
@@ -385,7 +385,7 @@ export const useMainDashboardStore = defineStore('mainDashboard', () => {
generalId: id,
turnIndex,
action,
args: {},
args,
});
reservedGeneralTurns.value = result.turns;
} catch (err) {
@@ -409,7 +409,7 @@ export const useMainDashboardStore = defineStore('mainDashboard', () => {
}
};
const setNationTurn = async (turnIndex: number, action: string) => {
const setNationTurn = async (turnIndex: number, action: string, args: Record<string, unknown> = {}) => {
const id = generalId.value;
const currentGeneral = general.value;
if (!id || !currentGeneral) {
@@ -423,7 +423,7 @@ export const useMainDashboardStore = defineStore('mainDashboard', () => {
generalId: id,
turnIndex,
action,
args: {},
args,
});
reservedNationTurns.value = result.turns;
} catch (err) {