Struct Height
Represents a height value. Internally stored as an ushort.
Implements
Inherited Members
Namespace: TerraProc.Core.Terrain
Assembly: TerraProc.Core.dll
Syntax
public readonly record struct Height : IEquatable<Height>
Constructors
| Edit this page View SourceHeight(ushort)
Represents a height value. Internally stored as an ushort.
Declaration
public Height(ushort Value)
Parameters
| Type | Name | Description |
|---|---|---|
| ushort | Value | height |
Properties
| Edit this page View SourceValue
height
Declaration
public ushort Value { get; init; }
Property Value
| Type | Description |
|---|---|
| ushort |
Methods
| Edit this page View SourceToString()
String representation of the height.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | String in the format "Height(value)". |
Overrides
Operators
| Edit this page View Sourceimplicit operator Height(ushort)
Implicit conversion from ushort.
Declaration
public static implicit operator Height(ushort v)
Parameters
| Type | Name | Description |
|---|---|---|
| ushort | v | ushort value. |
Returns
| Type | Description |
|---|---|
| Height | Height. |
implicit operator ushort(Height)
Implicit conversion to ushort.
Declaration
public static implicit operator ushort(Height h)
Parameters
| Type | Name | Description |
|---|---|---|
| Height | h | Height. |
Returns
| Type | Description |
|---|---|
| ushort | ushort value. |