gbx
Version:
a slim, fast and easy to set up Gamebox (GBX) parser written in TypeScript
30 lines (29 loc) • 1.01 kB
TypeScript
import Node from '../Node';
/**
* Class to determine the game version of a node.
*
* Rewritten from the [GameVersion class of GBXToolAPI](https://github.com/bigbang1112-cz/gbx-tool-api/blob/ab15dab71310d6458745d9615b8bfcd52567c7aa/Src/GbxToolAPI/GameVersion.cs), originally made by BigBang1112.
*/
export default class GameVersion extends Node {
private getObjectKeysAsNumbers;
/**
* Checks if node is TM2020. Supports maps, ghosts, and replays.
* @returns true or false.
*/
isTM2020(): boolean;
/**
* Checks if node is ManiaPlanet (includes TM2020). Supports maps, ghosts, and replays.
* @returns true or false.
*/
isManiaPlanet(): boolean;
/**
* Checks if node is Trackmania Turbo. Supports maps, ghosts, and replays.
* @returns true or false.
*/
isTurbo(): boolean;
/**
* Checks if node is Trackmania Nations Forever. Supports maps, ghosts, and replays.
* @returns true or false.
*/
isTMF(): boolean;
}