mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-23 02:41:02 +00:00
refactor: moved the game status to a global file (accessible to the render part) and used it in game entity
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
} from "typeorm";
|
||||
import type { GameShop } from "@types";
|
||||
import { Repack } from "./repack.entity";
|
||||
import { GameStatus } from "@globals";
|
||||
|
||||
@Entity("game")
|
||||
export class Game {
|
||||
@@ -40,7 +41,7 @@ export class Game {
|
||||
shop: GameShop;
|
||||
|
||||
@Column("text", { nullable: true })
|
||||
status: string;
|
||||
status: GameStatus | "";
|
||||
|
||||
@Column("float", { default: 0 })
|
||||
progress: number;
|
||||
|
||||
Reference in New Issue
Block a user