UNPKG

gbx

Version:

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

127 lines (126 loc) 3.38 kB
import GameVersion from '../Utilities/GameVersion'; import GBX from '../../GBX'; import CGameCtnChallenge from './CGameCtnChallenge'; import CGameCtnGhost from './CGameCtnGhost'; import CPlugEntRecordData from '../Plug/CPlugEntRecordData'; /** * A replay. * @chunk 0x03093000 / 0x2407e000 */ export default class CGameCtnReplayRecord extends GameVersion { authorExtraInfo?: string; authorLogin?: string; authorNickname?: string; authorVersion?: number; authorZone?: string; challengeData?: GBX<CGameCtnChallenge>; controlEntries?: { name: any; time: number; value: number; analog: boolean; }[]; controlNames?: string[]; eventsDuration?: number; extras?: { extra1: number; extra2: number; }[]; game?: string; ghosts?: CGameCtnGhost[]; mapInfo?: IMeta; playerLogin?: string; playerNickname?: string; playgroundScript?: string; recordData?: CPlugEntRecordData; time?: number; titleId?: string; xml?: string; /** * (Header) Basic information */ protected 0x03093000: ({ r }: Chunk, f: ChunkFunctions) => void; /** * (Header) XML data */ protected 0x03093001: ({ r }: Chunk) => void; /** * (Header) Author information * (Body) Track data */ protected 0x03093002: ({ r, isHeaderChunk }: Chunk, f: ChunkFunctions) => void; /** * Validation TM1.0 */ /** * Ghost data */ protected 0x03093004: ({ r }: Chunk, f: ChunkFunctions) => void; /** * Unknown */ protected 0x03093005: ({ r }: Chunk, f: ChunkFunctions) => void; /** * (Skippable) Unknown */ protected 0x03093007: ({ r }: Chunk, f: ChunkFunctions) => void; /** * (Skippable) Game */ protected 0x03093008: ({ r }: Chunk, f: ChunkFunctions) => void; /** * MediaTracker Clip */ protected 0x0309300c: ({ r, fullChunkId }: Chunk) => void; /** * Validation */ protected 0x0309300d: ({ r }: Chunk, f: ChunkFunctions) => void; /** * Events */ protected 0x0309300e: ({ r, fullChunkId }: Chunk) => void; /** * (Skippable) Game and unknown data */ protected 0x0309300f: ({ r }: Chunk, f: ChunkFunctions) => void; /** * Simple events display */ protected 0x03093010: ({ r, fullChunkId }: Chunk) => void; /** * Ghost data */ protected 0x03093014: ({ r }: Chunk, f: ChunkFunctions) => void; /** * MediaTracker Clip */ protected 0x03093015: ({ r, fullChunkId }: Chunk) => void; /** * (Skippable) Author information */ protected 0x03093018: ({ r }: Chunk) => void; /** * (Skippable) Scenery vortex key */ /** * (Skippable) Player of interest */ protected 0x0309301b: ({ r }: Chunk, f: ChunkFunctions) => void; /** * (Skippable) Playground script (Campaign solo) */ protected 0x0309301c: ({ r }: Chunk, f: ChunkFunctions) => void; /** * (Skippable) Unknown */ protected 0x03093021: ({ r }: Chunk, f: ChunkFunctions) => void; /** * (Skippable) Record data */ protected 0x03093024: ({ r }: Chunk, f: ChunkFunctions) => void; /** * (Skippable) Unknown */ protected 0x03093025: ({ r }: Chunk, f: ChunkFunctions) => void; }