Constructor
new Requests()
Creates a new Requests object.
- Source:
Extends
Members
(readonly) length :number
The number of registered requested resources.
Type:
- number
- Inherited From:
- Source:
Methods
add(name, path) → {undefined}
Add a new resource request.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Resource name (ID). |
path |
string | Resource path. |
- Inherited From:
- Source:
Returns:
- Type
- undefined
clear() → {undefined}
Clears the entire list (batch) of requests.
- Inherited From:
- Source:
Returns:
- Type
- undefined
get(name) → {rune.resource.Request}
Retrieve a resource request based on its name.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Resource name (ID). |
- Inherited From:
- Source: