Class Terrain.TerrainBase
Base class for server-side implementations of Terrain
Inherited Members
Namespace: TerraProc.Grpc
Assembly: TerraProc.Contracts.dll
Syntax
[BindServiceMethod(typeof(Terrain), "BindService")]
public abstract class Terrain.TerrainBase
Methods
| Edit this page View SourceGetChunk(ChunkCoords, ServerCallContext)
Retrieves a terrain chunk based on its coordinates
Declaration
public virtual Task<Chunk> GetChunk(ChunkCoords request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| ChunkCoords | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<Chunk> | The response to send back to the client (wrapped by a task). |