Skip to content

ProjectAsset beta ​

Interface of @v12-engine/editor

ts
export interface ProjectAsset

An asset file: its path in the folder it is in (models/units/lich.glb), what it is, how big and how new

Members ​

animations ​

ts
animations?: string[];

A model of @v12-engine/assets: its clips and named parts (ModelFacts)

credit ​

ts
credit?: string;

Who made the file and under which licence, for a file of the assets package; a credit of a game's own file otherwise

group ​

ts
group?: string;

A file of @v12-engine/assets (served by assetsPackage): its group, and who made it under which licence; a credit of the game's own file as its assets.json says

groupName ​

ts
groupName?: string;

What its group is called: Fantasy RTS

kind ​

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

What the file is: model, animation, sound, music, texture, icon, image or video

modified ​

ts
modified: number;

When the file was last changed, in milliseconds since the epoch

parts ​

ts
parts?: string[];

The model's named parts (ModelFacts), for a model of @v12-engine/assets

path ​

ts
path: string;

The file's path from the game's folder, with / between the parts

size ​

ts
size: number;

The file's size in bytes

tags ​

ts
tags?: string[];

Words it is found by (the game's own files, assets.json's tags)