Logics for loading an xml file into the resource_map
Exports the unload(), has(), and get() functions from resource map
Found in Chapter 4, page 146 of the textbook
Examples: 4.4 Scene File, 4.5 Scene Objects- Source:
Methods
(static) load(path) → {Promise}
Load the resource into the resource map
Parameters:
| Name | Type | Description |
|---|---|---|
path |
string | the path to the XML to load |
- Source:
Returns:
a Promise to load the resource, null if the resource already exists in the map
- Type
- Promise