Class: Requests

rune.data.Requests()

The Requests class is a declaration of which resource files (data) are used by Rune during runtime. All resource requests included in this class are of the Data URL (RFC 2397) format and are thus included in Rune's source code. In the event of missing or damaged data, Rune cannot complete its start-up process.

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:
Returns:
Type
rune.resource.Request