Struct Chunk
Represents a chunk in the grid, containing its coordinates and data.
Implements
Inherited Members
Namespace: TerraProc.Core.Terrain
Assembly: TerraProc.Core.dll
Syntax
public readonly record struct Chunk : IEquatable<Chunk>
Constructors
| Edit this page View SourceChunk(ChunkCoords, ChunkData)
Represents a chunk in the grid, containing its coordinates and data.
Declaration
public Chunk(ChunkCoords Coords, ChunkData Data)
Parameters
| Type | Name | Description |
|---|---|---|
| ChunkCoords | Coords | Coordinates of the chunk. |
| ChunkData | Data | Data of the chunk. |
Properties
| Edit this page View SourceCoords
Coordinates of the chunk.
Declaration
public ChunkCoords Coords { get; init; }
Property Value
| Type | Description |
|---|---|
| ChunkCoords |
Data
Data of the chunk.
Declaration
public ChunkData Data { get; init; }
Property Value
| Type | Description |
|---|---|
| ChunkData |
Methods
| Edit this page View SourceToString()
String representation of the chunk.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | String in the format "Chunk((X, Y), Data)". |