Interface ITileDataProvider<T>
Defines an interface to request tile data.
Namespace: Holoride.ElasticSDK
Assembly: Holoride.ElasticSDK.Library.Runtime.dll
Syntax
public interface ITileDataProvider<T>
Type Parameters
Name | Description |
---|---|
T |
Methods
RequestMapTileDataAsync(int, Vector2Int, Action<T>, CancellationToken)
Requests a tile data.
Declaration
UniTask RequestMapTileDataAsync(int zoomLevel, Vector2Int tilePos, Action<T> onTileLoaded, 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. |
Action<T> | onTileLoaded | A callback providing the object that has been loaded. |
CancellationToken | cancellationToken | The token to monitor for cancellation requests. |
Returns
Type | Description |
---|---|
Cysharp.Threading.Tasks.UniTask |