Struct Tile
Represents a single tile in the grid, containing its height and material.
Implements
Inherited Members
Namespace: TerraProc.Core.Terrain
Assembly: TerraProc.Core.dll
Syntax
public readonly record struct Tile : IEquatable<Tile>
Constructors
| Edit this page View SourceTile(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 SourceHeightValue
Height of the tile.
Declaration
public Height HeightValue { get; init; }
Property Value
| Type | Description |
|---|---|
| Height |
MaterialValue
Material of the tile.
Declaration
public Material MaterialValue { get; init; }
Property Value
| Type | Description |
|---|---|
| Material |
Methods
| Edit this page View SourceToString()
String representation of the tile.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | String in the format "Tile(Height: height, Material: material)". |