mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +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:
parent
c6e4ba4789
commit
6fa4c178a7
13 changed files with 26 additions and 20 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue