Show / Hide Table of Contents

Struct Chunk

Represents a chunk in the grid, containing its coordinates and data.

Implements
IEquatable<Chunk>
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: TerraProc.Core.Terrain
Assembly: TerraProc.Core.dll
Syntax
public readonly record struct Chunk : IEquatable<Chunk>

Constructors

| Edit this page View Source

Chunk(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 Source

Coords

Coordinates of the chunk.

Declaration
public ChunkCoords Coords { get; init; }
Property Value
Type Description
ChunkCoords
| Edit this page View Source

Data

Data of the chunk.

Declaration
public ChunkData Data { get; init; }
Property Value
Type Description
ChunkData

Methods

| Edit this page View Source

ToString()

String representation of the chunk.

Declaration
public override string ToString()
Returns
Type Description
string

String in the format "Chunk((X, Y), Data)".

Overrides
ValueType.ToString()

Implements

IEquatable<T>
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX