UNPKG

gbx

Version:

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

27 lines (26 loc) 794 B
interface ChunkList { [key: number]: { unknowns: any[]; version: any; } | null; } export default class Merger { /** * Merge unknowns and versions into an object of chunks. * @param chunks A list of chunks. * @param unknowns An object of unknowns. * @param versions An object of versions. * @returns combined chunks. */ static mergeChunks(chunks: { [x: number]: boolean; }, unknowns: Unknowns, versions: Versions): ChunkList; /** * Destructively merge two instances of the same class. * @param target Instance to merge into. * @param source Instance to merge from. * @returns Merged instance. */ static mergeInstances<NodeType>(target: NodeType, source: NodeType): NodeType; } export {};