Methods
(static) asyncLoadCompleted(rName, loadedAsset) → {void}
Callback for when reource is loaded into the ResourceMap
Parameters:
Name | Type | Description |
---|---|---|
rName |
String | |
loadedAsset |
File | asset to load into ResourceMap |
Returns:
- Type
- void
(static) asyncLoadRequested(rName) → {void}
Register one more resource to load
Parameters:
Name | Type | Description |
---|---|---|
rName |
String | name of resource to load |
Returns:
- Type
- void
(static) incAssetRefCount(rName) → {void}
Increment the refrence count of asser rName
Parameters:
Name | Type | Description |
---|---|---|
rName |
String | name of asset to increment refrence count |
Returns:
- Type
- void
(static) isAssetLoaded(rName) → {Boolean}
Returns if asset is loaded into map
Parameters:
Name | Type | Description |
---|---|---|
rName |
String | name of asset |
Returns:
true if rName is loaded in ResourceMap
- Type
- Boolean
(static) MapEntry(rName) → {MapEntry}
ResourceMap node containing name and refrence count of resource
Parameters:
Name | Type | Description |
---|---|---|
rName |
String |
Returns:
- Type
- MapEntry
(static) retrieveAsset(rName) → {File}
Return the asset of rName
Parameters:
Name | Type | Description |
---|---|---|
rName |
String | name of asset to return |
Returns:
asset associtated to rName
- Type
- File
(static) setLoadCompleteCallback(funct) → {void}
Make sure to set the callback _AFTER_ all load commands are issued
Parameters:
Name | Type | Description |
---|---|---|
funct |
function | callback Function |
Returns:
- Type
- void
(static) unloadAsset(rName) → {Number}
Remove the reference to allow associated memory
be available for subsequent garbage collection
Parameters:
Name | Type | Description |
---|---|---|
rName |
String | name of asset to unload |
Returns:
Refrence count of asset
- Type
- Number