Struct Vitals
Namespace: OblivionMP.SDK.Common.Archetypes.Mixins
Assembly: OblivionMP.SDK.Common.dll
Health, magicka and fatigue, current and maximum, and whether the character is dead.
[ArchetypeMixin(Replication.OwnershipBased)]
public readonly struct Vitals : 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
Fatigue
Current fatigue.
public float Fatigue { get; set; }
Property Value
FatigueBase
Maximum fatigue.
public float FatigueBase { get; set; }
Property Value
Hp
Current health.
[Predictable]
public float Hp { get; set; }
Property Value
HpBase
Maximum health.
public float HpBase { get; set; }
Property Value
IsDead
Whether the character is dead.
public bool IsDead { get; }
Property Value
Magicka
Current magicka.
public float Magicka { get; set; }
Property Value
MagickaBase
Maximum magicka.
public float MagickaBase { get; set; }
Property Value
Methods
As<T>()
public T As<T>() where T : struct, IArchetypeQueryable
Returns
T
Type Parameters
T
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 Vitals 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.
PredictHp(float)
Guesses at the value, inside the callback handed to .Predicting().
public void PredictHp(float value)
Parameters
value float
TryAs<T>(out T)
public bool TryAs<T>(out T archetype) where T : struct, IArchetypeQueryable
Parameters
archetype T
Returns
Type Parameters
T