beginnings of game state management

This commit is contained in:
DecDuck
2024-10-17 21:05:25 +11:00
parent 30ff908abc
commit 1ff74a1bcf
6 changed files with 84 additions and 32 deletions
+18 -10
View File
@@ -1,17 +1,17 @@
import type { User } from "@prisma/client";
import type { Component } from "vue"
import type { Component } from "vue";
export type NavigationItem = {
prefix: string,
route: string,
label: string,
}
prefix: string;
route: string;
label: string;
};
export type QuickActionNav = {
icon: Component,
notifications?: number,
action: () => Promise<void>,
}
icon: Component;
notifications?: number;
action: () => Promise<void>;
};
export type AppState = {
status: AppStatus;
user?: User;
@@ -22,4 +22,12 @@ export enum AppStatus {
SignedOut = "SignedOut",
SignedIn = "SignedIn",
SignedInNeedsReauth = "SignedInNeedsReauth",
}
}
export enum GameStatus {
Remote = "Remote",
Downloading = "Downloading",
Installed = "Installed",
Updating = "Updating",
Uninstalling = "Uninstalling",
}