AssetIndexSource beta
Interface of @v12-engine/editor
export interface AssetIndexSourceWhat the index reads of the editor, so that it can be made with no screen (a test, a script) *
Members
cinematics
cinematics?: () => ReadonlyMap<string, CinematicDef>;The game's cinematics by name
folder
folder: string | undefined;The game's folder (GameView.files.assets): games/td; nothing for a game with none
icons
icons?: () => NonNullable<GameView['hud']>['icons'];The game's HUD icons by name, when the view has any
list
list?: () => Promise<{
own: ProjectAsset[];
shared: ProjectAsset[];
}>;What lists the files, where the index is not given them: the dev server while developing
looks
looks: () => Readonly<Record<string, LooksEntry | undefined>>;The game's looks as they are, by unit type: models, sounds, clips
map
map: () => GameMap;The game's map, read afresh on each call
pack
pack: () => Iterable<string>;The files the map brings (MapPack), by path
prefabs
prefabs?: () => ReadonlyMap<string, PrefabFile>;The game's prefab files by name
project
project?: Pick<Project, 'has' | 'listAssets' | 'saveAssetTags' | 'assetUses'>;The project the files are listed, tagged and found used in, where there is one: the editor's (editor.project)
registry
registry?: Registry;The registry of the engine's assets package, to list its files; none lists no package files
tiles
tiles?: () => NonNullable<GameView['ground']>['tiles'] | undefined;The ground's tiles by name, when the view has any
uses
uses?: (asset: Asset) => AssetUse[];The game's own: what else uses a file (a wave's icon, a mission's picture)
writeTags
writeTags?: (tags: Record<string, string[]>) => Promise<void>;What writes the tags: the dev server while developing