mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-26 20:31:03 +00:00
feat: migrating games to leveldb
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
import type { SteamAchievement, UnlockedAchievement } from "./game.types";
|
||||
import type { Downloader } from "@shared";
|
||||
import type {
|
||||
GameShop,
|
||||
GameStatus,
|
||||
SteamAchievement,
|
||||
UnlockedAchievement,
|
||||
} from "./game.types";
|
||||
|
||||
export type SubscriptionStatus = "active" | "pending" | "cancelled";
|
||||
|
||||
@@ -24,6 +30,37 @@ export interface User {
|
||||
subscription: Subscription | null;
|
||||
}
|
||||
|
||||
export interface Game {
|
||||
title: string;
|
||||
iconUrl: string | null;
|
||||
status: GameStatus | null;
|
||||
playTimeInMilliseconds: number;
|
||||
lastTimePlayed: Date | null;
|
||||
objectId: string;
|
||||
shop: GameShop;
|
||||
remoteId: string | null;
|
||||
isDeleted: boolean;
|
||||
winePrefixPath?: string | null;
|
||||
executablePath?: string | null;
|
||||
launchOptions?: string | null;
|
||||
}
|
||||
|
||||
export interface Download {
|
||||
shop: GameShop;
|
||||
objectId: string;
|
||||
uri: string;
|
||||
folderName: string;
|
||||
downloadPath: string;
|
||||
progress: number;
|
||||
downloader: Downloader;
|
||||
bytesDownloaded: number;
|
||||
playTimeInMilliseconds: number;
|
||||
lastTimePlayed: Date | null;
|
||||
fileSize: number;
|
||||
shouldSeed: boolean;
|
||||
timestamp: number;
|
||||
}
|
||||
|
||||
export interface GameAchievement {
|
||||
achievements: SteamAchievement[];
|
||||
unlockedAchievements: UnlockedAchievement[];
|
||||
|
||||
Reference in New Issue
Block a user