Class AbilityModifierContext
One evaluation of an ability's modifiers: the ability, its caster, and the input tick, plus a cache so rules of one kind can share what they look up (the weather rules take one sample between them).
public sealed class AbilityModifierContext
- Inheritance
-
AbilityModifierContext
- Inherited Members
Properties
Ability
The ability being cast.
public Ability Ability { get; }
Property Value
Behaviour
The behaviour running the replicate, for tick resolution.
public NetworkBehaviour Behaviour { get; }
Property Value
- NetworkBehaviour
Character
The caster.
public ICharacter Character { get; }
Property Value
InputTick
The replicate's input tick.
public uint InputTick { get; }
Property Value
Methods
Set<T>(T)
Caches a value for the rest of this evaluation.
public void Set<T>(T value)
Parameters
valueT
Type Parameters
T
TryGet<T>(out T)
A value a rule cached for this evaluation, keyed by its type.
public bool TryGet<T>(out T value)
Parameters
valueT
Returns
Type Parameters
T