Interface IChunkProvider
Represents a provider that can supply chunk data for given coordinates.
Namespace: TerraProc.Core.Provider
Assembly: TerraProc.Core.dll
Syntax
public interface IChunkProvider
Methods
| Edit this page View SourceGetAsync(ChunkCoords, CancellationToken)
Asynchronously retrieves chunk data for the specified coordinates.
Declaration
Task<ChunkData> GetAsync(ChunkCoords coords, CancellationToken ct = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ChunkCoords | coords | The coordinates of the chunk to retrieve. |
| CancellationToken | ct | A cancellation token to cancel the operation. |
Returns
| Type | Description |
|---|---|
| Task<ChunkData> | A task that represents the asynchronous operation, containing the chunk data. |