Struct AlchemyForm
Namespace: OblivionMp.Sdk.Common.Archetypes
Assembly: OblivionMp.Sdk.Common.dll
A potion a player brewed, shared with every client and the server.
[Archetype(true)]
public readonly struct AlchemyForm : 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
EffectsCount
public int EffectsCount { get; }
Property Value
Flags
The game's flags for the potion, as a raw byte.
public byte Flags { get; set; }
Property Value
IsValid
public bool IsValid { get; }
Property Value
ModelPath
The path of the item's 3D model, used for both the inventory preview and the dropped-in-world mesh.
public NativeString256 ModelPath { get; set; }
Property Value
NativeString256
Name
The item's display name.
public NativeString256 Name { get; set; }
Property Value
NativeString256
Value
The potion's value in gold.
public uint Value { get; set; }
Property Value
Weight
The potion's weight.
public float Weight { get; set; }
Property Value
Methods
AddEffects(in MagicEffectEntry)
[Changes("AlchemyForm.Field.Effects")]
public void AddEffects(in MagicEffectEntry value)
Parameters
value MagicEffectEntry
As<T>()
public T As<T>() where T : struct, IArchetypeQueryable
Returns
T
Type Parameters
T
ClearEffects()
[Changes("AlchemyForm.Field.Effects")]
public void ClearEffects()
ContainsEffects(in MagicEffectEntry)
public bool ContainsEffects(in MagicEffectEntry value)
Parameters
value MagicEffectEntry
Returns
GetEffects()
public NativeList<MagicEffectEntry>.ReadOnly GetEffects()
Returns
NativeList<MagicEffectEntry>.ReadOnly
GetEffects(int)
public MagicEffectEntry GetEffects(int index)
Parameters
index int
Returns
MagicEffectEntry
InsertEffects(int, in MagicEffectEntry)
[Changes("AlchemyForm.Field.Effects")]
public void InsertEffects(int index, in MagicEffectEntry value)
Parameters
index int
value MagicEffectEntry
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 AlchemyForm 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.
RemoveAtEffects(int)
[Changes("AlchemyForm.Field.Effects")]
public MagicEffectEntry RemoveAtEffects(int index)
Parameters
index int
Returns
MagicEffectEntry
SetEffects(in NativeList<MagicEffectEntry>)
[Changes("AlchemyForm.Field.Effects")]
public void SetEffects(in NativeList<MagicEffectEntry> value)
Parameters
value NativeList<MagicEffectEntry>
SetEffects(int, in MagicEffectEntry)
[Changes("AlchemyForm.Field.Effects")]
public void SetEffects(int index, in MagicEffectEntry value)
Parameters
index int
value MagicEffectEntry
TryAs<T>(out T)
public bool TryAs<T>(out T archetype) where T : struct, IArchetypeQueryable
Parameters
archetype T
Returns
Type Parameters
T