Skip to content

API Interface AssetSource

github-actions[bot] edited this page Nov 28, 2026 · 3 revisions

Interface: AssetSource

Defined in: src/engine/scene/Assets.ts:19

Methods

get()

get(path): unknown;

Defined in: src/engine/scene/Assets.ts:22

The asset value for path by its kind (ADR 0254): parsed JSON for .json files, the text of text files, a URL otherwise.

Parameters

path

string

Returns

unknown


has()

has(path): boolean;

Defined in: src/engine/scene/Assets.ts:20

Parameters

path

string

Returns

boolean


paths()?

paths?(): Iterable<string>;

Defined in: src/engine/scene/Assets.ts:27

Every path the source holds, when it can list them (ADR 0356: string tables are found by name). A source without it still serves lookups; what it holds just isn't discovered.

Returns

Iterable<string>

Clone this wiki locally