Interface ITileDataService<T>
Downloads and caches tiles to the hard drive.
Inherited Members
Namespace: Holoride.ElasticSDK
Assembly: Holoride.ElasticSDK.Library.Runtime.dll
Syntax
public interface ITileDataService<T> : ITileDataProvider<T>
Type Parameters
Name | Description |
---|---|
T |
Methods
CacheMapTileDataAsync(TileAreaDescription, IProgress<float>, CancellationToken)
Caches all map tiles of a given tile array.
Declaration
UniTask<LoadResourceResult> CacheMapTileDataAsync(TileAreaDescription tileAreaDescription, IProgress<float> onProgressUpdate = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
TileAreaDescription | tileAreaDescription | A tile array. |
IProgress<float> | onProgressUpdate | A callback providing the current caching progress as a value between 0 and 1. |
CancellationToken | cancellationToken | The token to monitor for cancellation requests. |
Returns
Type | Description |
---|---|
Cysharp.Threading.Tasks.UniTask<T><LoadResourceResult> |
CacheMapTileDataAsync(int, Vector2Int, IProgress<float>, CancellationToken)
Caches a single map tile.
Declaration
UniTask<LoadResourceResult> CacheMapTileDataAsync(int zoomLevel, Vector2Int tilePos, IProgress<float> onProgressUpdate = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | zoomLevel | The zoom level the tile position refers to. |
Vector2Int | tilePos | The global position index with respect to the chosen zoom level. |
IProgress<float> | onProgressUpdate | A callback providing the current caching progress as a value between 0 and 1. |
CancellationToken | cancellationToken | The token to monitor for cancellation requests. |
Returns
Type | Description |
---|---|
Cysharp.Threading.Tasks.UniTask<T><LoadResourceResult> |