Struct ItemValues
Namespace: OblivionMp.Sdk.Serverside.Archetypes
Assembly: OblivionMp.Sdk.Serverside.dll
The base value of every item by form id, kept on the server only.
public readonly struct ItemValues : IArchetype, IArchetypeQueryable, IEntityShape
Implements
IArchetype, IArchetypeQueryable, IEntityShape
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
IsValid
public bool IsValid { get; }
Property Value
ValuesCount
public int ValuesCount { get; }
Property Value
Methods
AddValues(in uint, in ItemValue)
public bool AddValues(in uint key, in ItemValue value)
Parameters
key uint
value ItemValue
Returns
As<T>()
public T As<T>() where T : struct, IArchetypeQueryable
Returns
T
Type Parameters
T
ClearValues()
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
Is<T>()
public bool Is<T>() where T : struct, IArchetypeQueryable
Returns
Type Parameters
T
Keep()
This entity, which it already is: a loop over this shape hands over the shape itself.
public ItemValues 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)
public bool RemoveValues(in uint key)
Parameters
key uint
Returns
SetValues(in NativeDictionary<uint, ItemValue, UIntHash>)
public void SetValues(in NativeDictionary<uint, ItemValue, UIntHash> value)
Parameters
value NativeDictionary<uint, ItemValue, UIntHash>
SetValues(in uint, in ItemValue)
public void SetValues(in uint key, in ItemValue value)
Parameters
key uint
value ItemValue
TryAs<T>(out T)
public bool TryAs<T>(out T archetype) where T : struct, IArchetypeQueryable
Parameters
archetype T
Returns
Type Parameters
T
TryGetValuesValue(in uint, out ItemValue)
public bool TryGetValuesValue(in uint key, out ItemValue value)
Parameters
key uint
value ItemValue