AssetLoader based on an AssetDescriptor. Please don't forget to
update the overriding emu file on GWT backend when changing this file!
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile Object | |
| pack-priv final AssetDescriptor | |
| pack-priv volatile boolean | |
| pack-priv volatile boolean | |
| pack-priv volatile Array | |
| pack-priv volatile boolean | |
| pack-priv volatile AsyncResult | |
| pack-priv final AsyncExecutor | |
| pack-priv final AssetLoader | |
| pack-priv volatile AsyncResult | |
| pack-priv AssetManager | |
| pack-priv final long |
| Access | Constructor and Description |
|---|---|
| public | AssetLoadingTask(AssetManager manager, AssetDescriptor<T> assetDesc, AssetLoader<T, P extends AssetLoaderParameters<T>> loader, AsyncExecutor threadPool)
|
| Modifier and Type | Method and Description |
|---|---|
| public Void | call()
Implements com. Loads parts of the asset asynchronously if the loader is an |
| private void | |
| private void | |
| private void | |
| private FileHandle | |
| public void | |
| public boolean | Returns: true in case the asset was fully loaded, false otherwiseUpdates the loading of the asset. |
| asset | back to summary |
|---|---|
| pack-priv volatile Object asset | |
| assetDesc | back to summary |
|---|---|
| pack-priv final AssetDescriptor<T> assetDesc | |
| asyncDone | back to summary |
|---|---|
| pack-priv volatile boolean asyncDone | |
| cancel | back to summary |
|---|---|
| pack-priv volatile boolean cancel | |
| dependencies | back to summary |
|---|---|
| pack-priv volatile Array<AssetDescriptor<T>> dependencies | |
| dependenciesLoaded | back to summary |
|---|---|
| pack-priv volatile boolean dependenciesLoaded | |
| depsFuture | back to summary |
|---|---|
| pack-priv volatile AsyncResult<Void> depsFuture | |
| executor | back to summary |
|---|---|
| pack-priv final AsyncExecutor executor | |
| loader | back to summary |
|---|---|
| pack-priv final AssetLoader<T, P extends AssetLoaderParameters<T>> loader | |
| loadFuture | back to summary |
|---|---|
| pack-priv volatile AsyncResult<Void> loadFuture | |
| manager | back to summary |
|---|---|
| pack-priv AssetManager manager | |
| startTime | back to summary |
|---|---|
| pack-priv final long startTime | |
| AssetLoadingTask | back to summary |
|---|---|
| public AssetLoadingTask(AssetManager manager, AssetDescriptor<T> assetDesc, AssetLoader<T, P extends AssetLoaderParameters<T>> loader, AsyncExecutor threadPool) | |
| call | back to summary |
|---|---|
| public Void call() throws Exception Implements com. Loads parts of the asset asynchronously if the loader is an
| |
| handleAsyncLoader | back to summary |
|---|---|
| private void handleAsyncLoader() | |
| handleSyncLoader | back to summary |
|---|---|
| private void handleSyncLoader() | |
| removeDuplicates | back to summary |
|---|---|
| private void removeDuplicates(Array<AssetDescriptor<T>> array) | |
| resolve | back to summary |
|---|---|
| private FileHandle resolve(AssetLoader<T, P extends AssetLoaderParameters<T>> loader, AssetDescriptor<T> assetDesc) | |
| unload | back to summary |
|---|---|
| public void unload() Called when this task is the task that is currently being processed and it is unloaded. | |
| update | back to summary |
|---|---|
| public boolean update() Updates the loading of the asset. In case the asset is loaded with an
| |