Asset
Direct Subclass:
Asset - base of any asset loader.
Constructor Summary
Public Constructor | ||
public |
constructor(owner: AssetSystem, protocol: string, filename: string, options: *) Constructor. |
Member Summary
Public Members | ||
public get |
data: * |
|
public set |
data: * |
|
public get |
|
|
public get |
options: * |
|
public get |
|
|
public get |
|
Method Summary
Public Methods | ||
public |
dispose() Destructor (disposes internal resources). |
|
public |
fetchSubAsset(path: string, options: *): Promise Use this asset as fetch engine and load part of it's content as asset. |
|
public abstract |
Load asset. |
|
public |
makeFetchEngine(fallbackEngine: *): *: Function |
|
public |
onReady() Called when asset is loaded and ready to use. |
Public Constructors
public constructor(owner: AssetSystem, protocol: string, filename: string, options: *) source
Constructor.
Params:
Name | Type | Attribute | Description |
owner | AssetSystem | Asset owner. |
|
protocol | string | Used protocol name. |
|
filename | string | File name path. |
|
options | * | Options. |
Public Members
public get data: * source
public set data: * source
public get options: * source
public get owner: AssetSystem source
Public Methods
public dispose() source
Destructor (disposes internal resources).
Example:
asset.dispose();
asset = null;
public fetchSubAsset(path: string, options: *): Promise source
Use this asset as fetch engine and load part of it's content as asset.
Params:
Name | Type | Attribute | Description |
path | string | Asset path. |
|
options | * | fetch engine options. |