Skip to content

PackageFile beta ​

Interface of @v12-engine/client/vite

ts
export interface PackageFile

A file of the package, as a game sees it: by the path it is served at, its group, its kind and whose it is

Members ​

animations ​

ts
animations?: string[];

A model's clips and named parts, as the manifest tells them (what a look's names are checked against)

bytes ​

ts
bytes: number;

How big it is

clips ​

ts
clips?: string[];

The files a model's clips are in, by where each is served (models/characters/rig_medium_clips.glb): a rig's, which its characters share. Each is a file of the package of its own, taken with the model

credit ​

ts
credit?: string;

Who made it and its licence, as one line: Kay Lousberg (www.kaylousberg.com), CC0-1.0

file ​

ts
file: string;

Where it is on the disk

group ​

ts
group: string;

The group it is of, by id: characters

groupName ​

ts
groupName?: string;

What the group is called: Characters

kind ​

ts
kind: 'model' | 'sound' | 'music' | 'texture' | 'icon' | 'image';

What it is, as the client reads a game's files

levels ​

ts
levels?: {
        path: string;
        file: string;
        bytes: number;
        ratio?: number;
        triangles?: number;
    }[];

A model's lighter levels (npm run lod), drawn from farther away: each a file of its own, served beside it

parts ​

ts
parts?: string[];

The names of a model's named parts (meshes or nodes) as the manifest lists them, for checking a look's part names against

path ​

ts
path: string;

Where it is served, as a game's shared file is: models/characters/knight.glb