Struct ItemValuesMixin
Namespace: OblivionMp.Sdk.Common.Archetypes.Mixins
Assembly: OblivionMp.Sdk.Common.dll
The base value of every item in the game files, by form id.
[ArchetypeMixin]
public readonly struct ItemValuesMixin : 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
ValuesCount
public int ValuesCount { get; }
Property Value
Methods
AddValues(in uint, in ItemValue)
[Changes("ItemValuesMixin.Field.Values")]
public bool AddValues(in uint key, in ItemValue value)
Parameters
key uint
value ItemValue
Returns
ClearValues()
[Changes("ItemValuesMixin.Field.Values")]
public void ClearValues()
ContainsValues(in uint, in ItemValue)
public bool ContainsValues(in uint key, in ItemValue value)
Parameters
key uint
value ItemValue
Returns
ContainsValuesKey(in uint)
public bool ContainsValuesKey(in uint key)
Parameters
key uint
Returns
GetValues()
public NativeDictionary<uint, ItemValue, UIntHash>.ReadOnly GetValues()
Returns
NativeDictionary<uint, ItemValue, UIntHash>.ReadOnly
GetValues(in uint)
public ItemValue GetValues(in uint key)
Parameters
key uint
Returns
ItemValue
Keep()
This entity, which it already is: a loop over this shape hands over the shape itself.
public ItemValuesMixin 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.
RemoveValues(in uint)
[Changes("ItemValuesMixin.Field.Values")]
public bool RemoveValues(in uint key)
Parameters
key uint
Returns
SetValues(in NativeDictionary<uint, ItemValue, UIntHash>)
[Changes("ItemValuesMixin.Field.Values")]
public void SetValues(in NativeDictionary<uint, ItemValue, UIntHash> value)
Parameters
value NativeDictionary<uint, ItemValue, UIntHash>
SetValues(in uint, in ItemValue)
[Changes("ItemValuesMixin.Field.Values")]
public void SetValues(in uint key, in ItemValue value)
Parameters
key uint
value ItemValue
TryGetValuesValue(in uint, out ItemValue)
public bool TryGetValuesValue(in uint key, out ItemValue value)
Parameters
key uint
value ItemValue