跳到主要内容
版本:Next

Struct ItemValue

Namespace: ReadyM.Relay.Common.Oblivion.ECS.Values
Assembly: ReadyM.Relay.Common.Oblivion.dll

The base value of an item in the game files, and whether the engine computes it instead, like for an enchanted item or a potion.

public struct ItemValue : INetSerializable

Implements​

INetSerializable

Inherited Members​

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors​

ItemValue(int, bool)​

Builds a value from a gold amount and whether the game computes it instead.

public ItemValue(int value, bool hasComputedValue)

Parameters​

value int

hasComputedValue bool

Fields​

HasComputedValue​

Not 0 when the game computes the value instead.

public byte HasComputedValue

Field Value​

byte

Value​

The base value, in gold.

public int Value

Field Value​

int