To be called when the game is disposed. Clear the Spine Atlases loaded in this manager.
Get the Pixi TextureAtlas for the given resource that is already loaded (preloaded or loaded with load
).
If the resource is not loaded, null
will be returned.
The name of the atlas resource.
the TextureAtlas of the atlas if loaded, null
otherwise.
Returns promisified loaded atlas resource if it is availble, loads it otherwise.
Return the kind of resources handled by this manager.
Check if the given atlas resource was loaded (preloaded or loaded with load
).
The name of the atlas resource.
true if the content of the atlas resource is loaded, false otherwise.
Load specified atlas resource and pass it to callback once it is loaded.
The callback to pass atlas to it once it is loaded.
Load the specified resource.
This method will be run during the game. It should only do light tasks like file downloading.
Process the specified resource.
This method will only be run while loading screen is shown. It can do heavy tasks like parsing data.
Generated using TypeDoc
AtlasManager loads atlas files with pixi loader, using the "atlas" resources registered in the game resources and process them to Pixi TextureAtlas.
Contrary to audio/fonts, text files are loaded asynchronously, when requested. You should properly handle errors, and give the developer/player a way to know that loading failed.