Show / Hide Table of Contents

Struct Seed

Represents a seed for random generation. Internally stored as an uint.

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

Constructors

| Edit this page View Source

Seed(uint)

Represents a seed for random generation. Internally stored as an uint.

Declaration
public Seed(uint Value)
Parameters
Type Name Description
uint Value

seed

Properties

| Edit this page View Source

Value

seed

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

Methods

| Edit this page View Source

ToString()

String representation of the seed.

Declaration
public override string ToString()
Returns
Type Description
string

String in the format "Seed(value)".

Overrides
ValueType.ToString()

Operators

| Edit this page View Source

implicit operator Seed(uint)

Implicit conversion from uint.

Declaration
public static implicit operator Seed(uint v)
Parameters
Type Name Description
uint v

uint value.

Returns
Type Description
Seed

Seed.

| Edit this page View Source

implicit operator uint(Seed)

Implicit conversion to uint.

Declaration
public static implicit operator uint(Seed s)
Parameters
Type Name Description
Seed s

Seed.

Returns
Type Description
uint

uint value.

Implements

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