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
Count
How many.
public int Count
Field Value
FormId
What the item is.
public NetworkFormId FormId
Field Value
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
NoInstanceOverride
The Health or Charge value that means the item's default, or none.
public const float NoInstanceOverride = -1
Field Value
Worn
Not 0 while the item is equipped.
public byte Worn