The .drft container · function

checkCopies

What an assembly must be to the kit around it: every copy a declared piece that comes before it in the file — so a streaming reader holds the piece when the copy lands — and every piece carrying what the assembly asks of it. Shared by the writer and both readers, so a file one refuses the others refuse too.

Explained in The .drft container.

function checkCopies(assembly: DrftAssembly, ordinal: number, kit: ReadonlySet<number>, piece: (ordinal: number) => MeshData | undefined): void
import { checkCopies } from '@driftengine/drft';

Parameters

ParameterTypeDescription
assemblyDrftAssembly
ordinalnumber
kitReadonlySet<number>
piece(ordinal: number) => MeshData | undefined