import { StaticGameOptions } from './types'; import { Game } from '../misc/games'; /** * This class contains all game specific data * @author Eirik Måseidvåg */ export default class StaticGame { /** * Pretty name of the game * Example: World of Warships * NOT like this: wows * @private */ private readonly _name; /** * Acronym name of the game * Example: World of Warships => WOWS * @private */ private readonly _acronym; /** * An URL to a cover that will be used as a default cover of a room * Should be a transparent background with the game logo centered both horizontally and vertically * @private */ private readonly _cover; /** * SVG Cover * An URL to a cover that will be used as a default cover of a room * Should be a transparent background with the game logo centered both horizontally and vertically * @private */ private readonly _logo; /** * The game the data is related to * @private */ private readonly _game; /** * The categories * @private */ private readonly _categories; /** * Construct the instance * @param options */ constructor(options: StaticGameOptions); /** * Returns all entities * @returns {Array} resource: the entities */ get categories(): Required; /** * Returns the name * @returns {string} name: the pretty name for the game */ get name(): string; /** * Returns the acronym * @returns {string} acronym: the acronym name for the game */ get acronym(): string; /** * Returns the cover URL * @returns {string} cover: URL to cover */ get cover(): string; /** * Returns the SVG cover URL * @returns {string} cover: URL to SVG cover */ get logo(): string; /** * Returns the game the StaticGameExtended is related to * @returns {Game} game: the game */ get game(): Game; }