Class: SimpleDataSource
Core-API.SimpleDataSource
Hierarchy
SimpleEventDispatcher
<""
>↳
SimpleDataSource
Implements
Constructors
constructor
• new SimpleDataSource(...assets
)
Parameters
Name | Type |
---|---|
...assets | SimpleAssetList [] |
Overrides
SimpleEventDispatcher<''\>.constructor
Methods
addAssetList
▸ addAssetList(list
): void
Parameters
Name | Type |
---|---|
list | SimpleAssetList |
Returns
void
Implementation of
removeAssetList
▸ removeAssetList(list
): void
Parameters
Name | Type |
---|---|
list | SimpleAssetList |
Returns
void
Implementation of
findAssetRegex
▸ findAssetRegex(query
): Promise
<undefined
| IAsset
>
Parameters
Name | Type |
---|---|
query | RegExp |
Returns
Promise
<undefined
| IAsset
>
Implementation of
findAsset
▸ findAsset(query
): Promise
<undefined
| IAsset
>
Parameters
Name | Type |
---|---|
query | IAssetSearchQuery |
Returns
Promise
<undefined
| IAsset
>
Implementation of
findAssetSimple
▸ findAssetSimple(match
, ignoreCase?
): Promise
<undefined
| IAsset
>
Parameters
Name | Type | Default value |
---|---|---|
match | string | undefined |
ignoreCase | boolean | false |
Returns
Promise
<undefined
| IAsset
>