Skip to main content
Version: 1.0.0

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​

bool

ValuesCount​

public int ValuesCount { get; }

Property Value​

int

Methods​

AddValues(in uint, in ItemValue)​

public bool AddValues(in uint key, in ItemValue value)

Parameters​

key uint

value ItemValue

Returns​

bool

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​

bool

ContainsValuesKey(in uint)​

public bool ContainsValuesKey(in uint key)

Parameters​

key uint

Returns​

bool

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​

bool

Type Parameters​

T

Keep()​

This entity, which it already is: a loop over this shape hands over the shape itself.

public ItemValues Keep()

Returns​

ItemValues

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​

bool

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​

bool

Type Parameters​

T

TryGetValuesValue(in uint, out ItemValue)​

public bool TryGetValuesValue(in uint key, out ItemValue value)

Parameters​

key uint

value ItemValue

Returns​

bool

  • Properties
    • IsValid
    • ValuesCount
  • Methods
    • AddValues(in uint, in ItemValue)
    • As<T>()
    • ClearValues()
    • ContainsValues(in uint, in ItemValue)
    • ContainsValuesKey(in uint)
    • GetValues()
    • GetValues(in uint)
    • Is<T>()
    • Keep()
    • RemoveValues(in uint)
    • SetValues(in NativeDictionary<uint, ItemValue, UIntHash>)
    • SetValues(in uint, in ItemValue)
    • TryAs<T>(out T)
    • TryGetValuesValue(in uint, out ItemValue)