Show / Hide Table of Contents

Struct Height

Represents a height value. Internally stored as an ushort.

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

Constructors

| Edit this page View Source

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

Value

height

Declaration
public ushort Value { get; init; }
Property Value
Type Description
ushort

Methods

| Edit this page View Source

ToString()

String representation of the height.

Declaration
public override string ToString()
Returns
Type Description
string

String in the format "Height(value)".

Overrides
ValueType.ToString()

Operators

| Edit this page View Source

implicit 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.

| Edit this page View Source

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.

Implements

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