Table of Contents

Struct HueSpec

Namespace
Moongate.UO.Data.Templates.Items
Assembly
Moongate.UO.Data.dll

Represents a hue specification that can be either a fixed value or a runtime range.

public readonly record struct HueSpec : IEquatable<HueSpec>
Implements
Inherited Members

Properties

IsRange

public bool IsRange { get; }

Property Value

bool

Max

public int Max { get; }

Property Value

int

Min

public int Min { get; }

Property Value

int

Methods

FromRange(int, int)

public static HueSpec FromRange(int min, int max)

Parameters

min int
max int

Returns

HueSpec

FromValue(int)

public static HueSpec FromValue(int value)

Parameters

value int

Returns

HueSpec

Resolve(IEnhancedRandom?)

public int Resolve(IEnhancedRandom? rng = null)

Parameters

rng IEnhancedRandom

Returns

int

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.