Show / Hide Table of Contents

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 Source

GetAsync(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.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX