mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-22 08:20:58 -05:00
Made an interface that represents a game version
This commit is contained in:
parent
86dafdd03f
commit
f67c962726
1 changed files with 36 additions and 0 deletions
36
src/games/game-version.ts
Normal file
36
src/games/game-version.ts
Normal file
|
@ -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;
|
||||||
|
}
|
Loading…
Reference in a new issue