Skip to content

AssetMap

Constructors

new AssetMap()

new AssetMap(): AssetMap

Returns

AssetMap

Methods

addAssetGroup()

static addAssetGroup(pGroupId, pAssets): void

Add a group of assets under the id passed in.

Parameters

pGroupId: string

The id of the asset group - usually the id of the state.

pAssets: AssetMapData[]

A list of asset names.

Returns

void

Source

src/load/AssetMap.ts:14


getAssetGroup()

static getAssetGroup(pGroupId): AssetMapData[]

Retrieves the assets in the specified group.

Parameters

pGroupId: string

The id of the asset group.

Returns

AssetMapData[]

The assets or and empty string array if map is empty or group not found.

Source

src/load/AssetMap.ts:23