fix: added the @globals back and removed some merge leftovers

This commit is contained in:
lilezek 2024-04-30 11:09:29 +02:00
parent c8fe984171
commit 6d36db5446
8 changed files with 535 additions and 367 deletions

View file

@ -10,17 +10,17 @@ export enum GameStatus {
}
export namespace GameStatus {
export const isDownloading = (status: GameStatus | "") =>
export const isDownloading = (status: GameStatus | null) =>
status === GameStatus.Downloading ||
status === GameStatus.DownloadingMetadata ||
status === GameStatus.CheckingFiles;
export const isVerifying = (status: GameStatus | "") =>
export const isVerifying = (status: GameStatus | null) =>
GameStatus.DownloadingMetadata == status ||
GameStatus.CheckingFiles == status ||
GameStatus.Decompressing == status;
export const isReady = (status: GameStatus | "") =>
export const isReady = (status: GameStatus | null) =>
status === GameStatus.Finished ||
status === GameStatus.Seeding;
}