Struct Seed
Represents a seed for random generation. Internally stored as an uint.
Implements
Inherited Members
Namespace: TerraProc.Core.Terrain
Assembly: TerraProc.Core.dll
Syntax
public readonly record struct Seed : IEquatable<Seed>
Constructors
| Edit this page View SourceSeed(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 SourceValue
seed
Declaration
public uint Value { get; init; }
Property Value
| Type | Description |
|---|---|
| uint |
Methods
| Edit this page View SourceToString()
String representation of the seed.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | String in the format "Seed(value)". |
Overrides
Operators
| Edit this page View Sourceimplicit 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. |
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. |