mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: migrating games to leveldb
This commit is contained in:
parent
c115040e90
commit
1f0e195854
34 changed files with 410 additions and 343 deletions
|
|
@ -1,5 +1,3 @@
|
|||
import type { Downloader } from "@shared";
|
||||
|
||||
export type GameStatus =
|
||||
| "active"
|
||||
| "waiting"
|
||||
|
|
@ -11,33 +9,6 @@ export type GameStatus =
|
|||
|
||||
export type GameShop = "steam" | "epic";
|
||||
|
||||
export interface Game {
|
||||
// TODO: To be depreacted
|
||||
id: number;
|
||||
title: string;
|
||||
iconUrl: string;
|
||||
status: GameStatus | null;
|
||||
folderName: string;
|
||||
downloadPath: string | null;
|
||||
progress: number;
|
||||
bytesDownloaded: number;
|
||||
playTimeInMilliseconds: number;
|
||||
downloader: Downloader;
|
||||
winePrefixPath: string | null;
|
||||
executablePath: string | null;
|
||||
launchOptions: string | null;
|
||||
lastTimePlayed: Date | null;
|
||||
uri: string | null;
|
||||
fileSize: number;
|
||||
objectID: string;
|
||||
shop: GameShop;
|
||||
// downloadQueue: DownloadQueue | null;
|
||||
downloadQueue: any | null;
|
||||
shouldSeed: boolean;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
|
||||
export interface UnlockedAchievement {
|
||||
name: string;
|
||||
unlockTime: number;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue