Skip to content

AssetManifest beta ​

Interface of @v12-engine/client

ts
export interface AssetManifest

What a game's folder says it holds

Members ​

categories ​

ts
categories?: Record<string, Omit<AssetCategory, 'id'>>;

The game's categories of files, by id ({ "my-weapons": { "name": "My weapons", "files": ["models/blades/*"] } }): what the editor sorts them into, and writes when a file is put in one. See AssetCategory

credits ​

ts
credits?: Record<string, string>;

Who made the game's own files, under which licence: by path, or by a folder's prefix (models/orcs/)

icons ​

ts
icons?: string[];

Pictures of buttons, by their path in icons/

images ​

ts
images?: string[];

Other pictures, of loading screens and the like, by their path in images/

levels ​

ts
levels?: Record<string, number>;

The models that have lighter levels made beside them (npm run lod: <model>.lod1.glb and on), by their path, and how many: what the client draws them with from farther away (DetailLevel.ratio)

models ​

ts
models?: string[];

Models, by the path a ModelDef.src gives them

music ​

ts
music?: string[];

Music tracks, by name, in music/

sounds ​

ts
sounds?: Record<string, number>;

Sounds, by name: how many takes of each, name_1.mp3... or name.mp3 for one

tags ​

ts
tags?: Record<string, string[]>;

Words the game's own files are found by in the editor, by path

textures ​

ts
textures?: string[];

Textures, of the ground and the like, by their path in textures/

videos ​

ts
videos?: string[];

Videos (MP4, WebM), of a cinematic's video lane, by their path in videos/