Class ChunkService
Chunk gRPC service.
Inherited Members
Namespace: TerraProc.Server.Services
Assembly: TerraProc.Server.dll
Syntax
public sealed class ChunkService : Terrain.TerrainBase
Constructors
| Edit this page View SourceChunkService(IChunkProvider)
Chunk gRPC service.
Declaration
public ChunkService(IChunkProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| IChunkProvider | provider |
Methods
| Edit this page View SourceGetChunk(ChunkCoords, ServerCallContext)
Get chunk data by coordinates.
Declaration
public override Task<Chunk> GetChunk(ChunkCoords request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| ChunkCoords | request | Chunk coordinates. |
| ServerCallContext | context | gRPC context. |
Returns
| Type | Description |
|---|---|
| Task<Chunk> | Chunk data. |