Struct ItemExtraData
Namespace: OblivionMp.Sdk.Common.Archetypes.Mixins
Assembly: OblivionMp.Sdk.Common.dll
The condition and enchantment charge of a dropped item.
[ArchetypeMixin]
public readonly struct ItemExtraData : IArchetypeMixin, IArchetypeQueryable, IEntityShape
Implements
IArchetypeMixin, IArchetypeQueryable, IEntityShape
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
Charge
The item's enchantment charge, or -1 for its default or none.
public float Charge { get; set; }
Property Value
Durability
The item's condition, or -1 for its default or none.
public float Durability { get; set; }
Property Value
Methods
Keep()
This entity, which it already is: a loop over this shape hands over the shape itself.
public ItemExtraData Keep()
Returns
Remarks
Here so taking something out of a loop reads the same whichever way the loop walks. Whether a shape is walked by chunk follows from what it includes, which the call site cannot see and which changes when an include does.