Show / Hide Table of Contents

Struct Tile

Represents a single tile in the grid, containing its height and material.

Implements
IEquatable<Tile>
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 Tile : IEquatable<Tile>

Constructors

| Edit this page View Source

Tile(Height, Material)

Represents a single tile in the grid, containing its height and material.

Declaration
public Tile(Height HeightValue, Material MaterialValue)
Parameters
Type Name Description
Height HeightValue

Height of the tile.

Material MaterialValue

Material of the tile.

Properties

| Edit this page View Source

HeightValue

Height of the tile.

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

MaterialValue

Material of the tile.

Declaration
public Material MaterialValue { get; init; }
Property Value
Type Description
Material

Methods

| Edit this page View Source

ToString()

String representation of the tile.

Declaration
public override string ToString()
Returns
Type Description
string

String in the format "Tile(Height: height, Material: material)".

Overrides
ValueType.ToString()

Implements

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