idz: Add stamps to SaveStockerRequest

This commit is contained in:
BemaniWitch 2020-10-28 23:31:23 -04:00 committed by Tau
parent 63cd59e10e
commit 7b0380a719
2 changed files with 7 additions and 1 deletions

View File

@ -12,6 +12,9 @@ export async function saveStocker(
w.backgrounds().saveAll(profileId, req.backgrounds),
w.chara().save(profileId, req.chara),
w.car().saveSelection(profileId, req.selectedCar),
req.selectedStamps &&
w.stamps().saveSelection(profileId, req.selectedStamps),
req.stamps && w.stamps().saveAll(profileId, req.stamps),
]);
return { type: "generic_res" };

View File

@ -1,6 +1,7 @@
import { BackgroundCode } from "../model/base";
import { BackgroundCode, StampCode } from "../model/base";
import { CarSelector } from "../model/car";
import { Chara } from "../model/chara";
import { SelectedStamps } from "../model/stamps";
import { AimeId } from "../../../model";
export interface SaveStockerRequest {
@ -10,4 +11,6 @@ export interface SaveStockerRequest {
selectedCar: CarSelector;
backgrounds: Set<BackgroundCode>;
chara: Chara;
selectedStamps?: SelectedStamps;
stamps?: Set<StampCode>;
}