From f67c962726e6801859c0ddacebbd1ff3b7229e06 Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Fri, 24 Mar 2023 03:15:21 +0000 Subject: [PATCH] Made an interface that represents a game version --- src/games/game-version.ts | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/games/game-version.ts diff --git a/src/games/game-version.ts b/src/games/game-version.ts new file mode 100644 index 0000000..c2f0fff --- /dev/null +++ b/src/games/game-version.ts @@ -0,0 +1,36 @@ +import { Version } from "@/utils/versioning"; + +/** + * Represents a game version. + */ +export interface GameVersion { + /** + * The unique identifier of the game version. + */ + get id(): string; + + /** + * The version that represents this object. + */ + get version(): Version; + + /** + * A boolean indicating whether the game version is a snapshot or not. + */ + get isSnapshot(): boolean; + + /** + * A boolean indicating whether the game version is an alpha version or not. + */ + get isAlpha(): boolean; + + /** + * A boolean indicating whether the game version is a beta version or not. + */ + get isBeta(): boolean; + + /** + * A boolean indicating whether the game version is a release version or not. + */ + get isRelease(): boolean; +}