UNPKG

gbx

Version:

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

170 lines (169 loc) 4.31 kB
import CGameGhost from './CGameGhost'; import CPlugEntRecordData from '../Plug/CPlugEntRecordData'; /** * A ghost. * @chunk 0x03092000 */ export default class CGameCtnGhost extends CGameGhost { appearanceVersion?: number; apperanceVersion?: number; badge?: { version?: number; color?: number[]; stickers?: { item1: string; item2: string; }[]; layers?: string[]; }; checkpoints?: { time: number; speed?: number; stuntScore?: number; }[]; controlEntries?: { name: string; time: number; value: number; analog: boolean; }[]; controlNames?: string[]; eventsDuration?: number; ghostAvatarName?: string; ghostClubTag?: string; ghostLogin?: string; ghostNickname?: string; ghostTrigram?: string; ghostUid?: string; ghostZone?: string; hasBadges?: boolean; lightTrailColor?: number[] | Vector3; playerModel?: IMeta; raceTime?: number; recordData?: CPlugEntRecordData; recordingContext?: string; respawns?: number; skinFile?: string; skinPackDescs?: string[]; steeringWheelSensitivity?: boolean; stuntScore?: number; validationChallengeUid?: string; validationCpuKind?: number; validationExeChecksum?: number; validationExeVersion?: string; validationOsKind?: number; validationRaceSettings?: string; validationTitleId?: string; /** * (Skippable) Basic information */ protected 0x03092000: ({ r }: Chunk, f: ChunkFunctions) => void; /** * Driver data */ protected 0x03092003: ({ r }: Chunk) => void; /** * (Skippable) Checkpoints */ protected 0x03092004: ({ r }: Chunk) => void; /** * (Skippable) Race time */ protected 0x03092005: ({ r }: Chunk) => void; /** * Driver data */ protected 0x03092006: ({ r }: Chunk, f: ChunkFunctions) => void; /** * Old light trail color */ protected 0x03092007: ({ r }: Chunk) => void; /** * (Skippable) Respawns */ protected 0x03092008: ({ r }: Chunk) => void; /** * Light trail color */ protected 0x03092009: ({ r }: Chunk) => void; /** * (Skippable) Stunt score */ protected 0x0309200a: ({ r }: Chunk) => void; /** * (Skippable) Checkpoints */ protected 0x0309200b: ({ r }: Chunk) => void; /** * Unknown */ protected 0x0309200c: ({ r }: Chunk, f: ChunkFunctions) => void; /** * Driver data */ protected 0x0309200d: ({ r }: Chunk, f: ChunkFunctions) => void; /** * Ghost UID */ protected 0x0309200e: ({ r }: Chunk) => void; /** * Ghost login */ protected 0x0309200f: ({ r }: Chunk) => void; /** * Validation map UID */ protected 0x03092010: ({ r }: Chunk) => void; /** * Validation (TMU) */ protected 0x03092011: ({ r }: Chunk, f: ChunkFunctions) => void; /** * Unknown */ protected 0x03092012: ({ r }: Chunk, f: ChunkFunctions) => void; /** * (Skippable) Unknown */ protected 0x03092013: ({ r }: Chunk, f: ChunkFunctions) => void; /** * (Skippable) Unknown */ protected 0x03092014: ({ r }: Chunk, f: ChunkFunctions) => void; /** * Ghost nickname */ protected 0x03092015: ({ r }: Chunk) => void; /** * (Skippable) Ghost metadata */ protected 0x03092017: ({ r }: Chunk) => void; /** * Player model */ protected 0x03092018: ({ r }: Chunk) => void; /** * Validation (TMUF) */ protected 0x03092019: (chunk: Chunk, f: ChunkFunctions) => void; /** * (Skippable) Unknown */ protected 0x0309201a: ({ r }: Chunk, f: ChunkFunctions) => void; /** * (Skippable) Unknown */ protected 0x03092023: ({ r }: Chunk, f: ChunkFunctions) => void; /** * (Skippable) Validation TM2 */ protected 0x03092025: (chunk: Chunk, f: ChunkFunctions) => void; /** * (Skippable) Unknown */ protected 0x03092026: ({ r }: Chunk, f: ChunkFunctions) => void; /** * (Skippable) Title Id */ protected 0x03092028: ({ r }: Chunk, f: ChunkFunctions) => void; }