usedFiles beta
Function of @v12-engine/client/vite
ts
export declare function usedFiles(root: string, files: readonly PackageFile[], names: PackageFiles['names'], search?: string[]): Promise<PackageFile[]>;The files of the package a game uses, as far as its code and maps say: a model, a picture by its path in its folder ('characters/knight.glb'), by the index's name for it (characters.models.knight), or by its file's name in quotes ('knight'), as code that makes the path from a name has it ( units/${name}.glb ); a track by its name in quotes ('town', as a map's music says it). Every sound: the client plays some by their names itself (the interface's clicks). Generous on purpose: a file copied that is not used costs its size, one not copied that is used is a game that breaks