Skip to main content
Version: 1.0.0

Struct InventoryEntry

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

Represents an entry in a player's inventory, including the item form, quantity, and worn status.

public struct InventoryEntry : INetSerializable

Implements​

INetSerializable

Inherited Members​

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

Constructors​

InventoryEntry(NetworkFormId, int, byte)​

Builds an entry for an item that overrides neither durability nor charge.

public InventoryEntry(NetworkFormId formId, int count, byte worn)

Parameters​

formId NetworkFormId

count int

worn byte

Fields​

Charge​

Enchantment charge of this item instance, or -1 when it has a default value or doesn't have this property.

public float Charge

Field Value​

float

Count​

How many.

public int Count

Field Value​

int

FormId​

What the item is.

public NetworkFormId FormId

Field Value​

NetworkFormId

Health​

Durability of this item instance, or -1 when it has a default value or doesn't have this property.

public float Health

Field Value​

float

NoInstanceOverride​

The Health or Charge value that means the item's default, or none.

public const float NoInstanceOverride = -1

Field Value​

float

Worn​

Not 0 while the item is equipped.

public byte Worn

Field Value​

byte

  • Constructors
    • InventoryEntry(NetworkFormId, int, byte)
  • Fields
    • Charge
    • Count
    • FormId
    • Health
    • NoInstanceOverride
    • Worn