Skip to content

editorGlobalsAssetCache

Class: AssetCache

Hierarchy

  • AssetCache

Index

Properties

Methods

Properties

Static Private Readonly cachedAssets

cachedAssets: Map‹string, any› = new Map()

Defined in src/assets/AssetCache.ts:9

Methods

Static get

get(assetId: string): Asset

Defined in src/assets/AssetCache.ts:20

Parameters:

Name Type
assetId string

Returns: Asset


Static has

has(assetId: string): boolean

Defined in src/assets/AssetCache.ts:24

Parameters:

Name Type
assetId string

Returns: boolean


Static put

put(assetId: string, assetInstance: Asset): void

Defined in src/assets/AssetCache.ts:11

Parameters:

Name Type
assetId string
assetInstance Asset

Returns: void