Skip to content

AssetCategory beta ​

Interface of @v12-engine/client

ts
export interface AssetCategory

A category of asset files, as a game declares it (GameView.files.assetCategories, or categories in its folder's assets.json, where it is keyed by its id)

Members ​

description ​

ts
description?: string;

What it holds, said where it is shown

files ​

ts
files?: string[];

The files it holds, by their path in the game's folder or the shared ones (models/characters/knight.glb), or patterns of them: * is anything within a folder, ** across folders (models/weapons/**, sounds/sword_*)

id ​

ts
id: string;

Its id: lower case, numbers, dashes and underscores (my-weapons). A folder of this name is of it

name ​

ts
name?: string;

What it is called where it is shown: My weapons. Its id made into words when left out