SavedGame
⚠️
This page is under construction.
⚠️
Beta feature, subject to change.
type ElementStateRaw = Record<string, any>;
type RawData<T> = {
id: string;
data: T;
};
type PlayerStateData = {
scenes: {
sceneId: string;
elements: {
images: string[];
};
}[];
};
interface SavedGame {
name: string;
meta: {
created: number;
updated: number;
};
game: {
store: {
[key: string]: StorableData;
};
elementStates: RawData<ElementStateRaw>[];
stage: PlayerStateData;
currentAction: string | null;
};
}
For StoredData, see StorableData