AssetHandle
Defined in: AssetHandle.ts:6
A phantom-typed handle referencing an asset by type and path.
Created by plugin-specific factory functions (e.g. texture(), sound()).
Core knows nothing about concrete asset types.
Type Parameters
Section titled “Type Parameters”T
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AssetHandle<
T>(type,path):AssetHandle<T>
Defined in: AssetHandle.ts:7
Parameters
Section titled “Parameters”string
Loader type key (e.g. “texture”, “sound”).
string
Asset path or URL.
Returns
Section titled “Returns”AssetHandle<T>
Properties
Section titled “Properties”
readonly_type:T
Defined in: AssetHandle.ts:15
Phantom field to preserve the generic type at compile time.
readonlypath:string
Defined in: AssetHandle.ts:11
Asset path or URL.
readonlytype:string
Defined in: AssetHandle.ts:9
Loader type key (e.g. “texture”, “sound”).