namespace StatHub;
[GlobalClass]
public sealed partial class StatModifierInstance : RefCounted
An instance is an attachable representative for a modifier.
StatModifierInstance(StatModifier, int)
public StatModifierInstance(StatModifier modifier, float level = 1)
Creates a new instance of the input modifier
with the input level
.
LevelChanged
[Signal]
public delegate void LevelChangedEventHandler(float previous, float current);
Emitted when the level of this instance is changed.
Level
public float Level { get; set; }
Effectively acts as the "strength" of the modifier. No functionality is defined by default that uses it, but it may be used as a variable in expression mods and is always used in the linear scaling of simple mods.
Modifier
public readonly StatModifier Modifier;
The parent modifier of this instance.
Create(StatModifier)
public static StatModifierInstance Create(StatModifier modifier)