UNPKG

gbx

Version:

a slim, fast and easy to set up Gamebox (GBX) parser written in TypeScript

35 lines (34 loc) 1.29 kB
import { CGameCtnChallenge, CGameCtnGhost } from '../Classes/Game'; export declare namespace Utils { /** * Gets amount of checkpoints of a map. * @todo Add support for checkpoints as items. * @param gbx GBX of a CGameCtnChallenge. * @returns */ function getCheckpointCount(gbx: CGameCtnChallenge | CGameCtnGhost): number | undefined; /** * Gets amount of respawns of a ghost. * @param ghost GBX of a CGameCtnGhost. * @returns the amount of respawns. */ function getRespawnsCount(ghost: CGameCtnGhost): number | undefined; /** * Gets the splits of each checkpoint of a ghost. * @param ghost GBX of a CGameCtnGhost. * @returns the splits of each checkpoint. */ function getCheckpointTimes(ghost: CGameCtnGhost): number[] | undefined; /** * Gets the amount of respawns per checkpoint of a ghost. * @param ghost GBX of a CGameCtnGhost. * @returns the amount of respawns per checkpoint. */ function getRespawnsByCheckpoint(ghost: CGameCtnGhost): number[] | undefined; /** * Gets the sector times of a ghost. * @param ghost GBX of a CGameCtnGhost. * @returns the sector times. */ function getSectorTimes(ghost: CGameCtnGhost): number[] | undefined; }