igdb-types
Version:
TypeScript type definitions for IGDB API responses
71 lines (70 loc) • 2.71 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GameStatusEnum = void 0;
/**
* Represents the release status of a game in the IGDB database.
*
* This enum is used to indicate the current development or release state of a game.
* It's commonly used with the `status` property in the Game type or the `game_status`
* property which references the GameStatus type.
*
* @example
* ```typescript
* import { Game, GameStatusEnum } from 'igdb-types';
*
* // Check if a game is released
* if (game.status === GameStatusEnum.RELEASED) {
* console.log('This game has been released!');
* }
*
* // Filter games by status
* const earlyAccessGames = games.filter(game =>
* game.status === GameStatusEnum.EARLY_ACCESS
* );
* ```
*
* @see https://api-docs.igdb.com/#game-status For more information about game statuses in the IGDB API
*/
var GameStatusEnum;
(function (GameStatusEnum) {
/**
* The game has been released to the general public.
* This is the final, complete version of the game.
*/
GameStatusEnum[GameStatusEnum["RELEASED"] = 0] = "RELEASED";
/**
* The game is in alpha testing phase.
* This is an early development stage where the game is still incomplete and likely has many bugs.
*/
GameStatusEnum[GameStatusEnum["ALPHA"] = 2] = "ALPHA";
/**
* The game is in beta testing phase.
* This is a later development stage where the game is more complete but still being tested.
*/
GameStatusEnum[GameStatusEnum["BETA"] = 3] = "BETA";
/**
* The game is available in early access.
* Players can purchase and play the game before its official release, often to provide feedback.
*/
GameStatusEnum[GameStatusEnum["EARLY_ACCESS"] = 4] = "EARLY_ACCESS";
/**
* The game is no longer available or playable online.
* Typically applies to online-only games whose servers have been shut down.
*/
GameStatusEnum[GameStatusEnum["OFFLINE"] = 5] = "OFFLINE";
/**
* The game's development has been officially cancelled.
* The game will not be released.
*/
GameStatusEnum[GameStatusEnum["CANCELLED"] = 6] = "CANCELLED";
/**
* The game has been announced or leaked but not officially confirmed.
* Information about the game may be speculative.
*/
GameStatusEnum[GameStatusEnum["RUMORED"] = 7] = "RUMORED";
/**
* The game was previously available but has been removed from sale.
* The game may still be playable for those who purchased it before delisting.
*/
GameStatusEnum[GameStatusEnum["DELISTED"] = 8] = "DELISTED";
})(GameStatusEnum || (exports.GameStatusEnum = GameStatusEnum = {}));