Skip to main content

EffectHandler.EffectOverTimeData

A class in Root.Township, Alta.Alchemy.

One queued effect-over-time entry on an EffectHandler: total strength, duration in seconds and the callback that applies each tick.

Constructors​

MemberWhat it is
EffectOverTimeData(float strength, int duration, EffectDefinition effectToModify, Action<EffectHandler, EffectDefinition, float> handleUpdate)Creates an EffectHandler.EffectOverTimeData from strength, duration, effectToModify and handleUpdate.

Fields​

2 private and internal fields
MemberWhat it is
private EffectDefinition effectDefinitionThe effect this entry changes.
private Action<EffectHandler, EffectDefinition, float> handleUpdateCallback that applies one tick.

Properties​

MemberWhat it is
int Duration { get; private set; }Number of one-second ticks. Strength is split evenly across them.
float Strength { get; private set; }Total amount applied over the whole duration.

Methods​

1 private and internal method
MemberWhat it is
internal void HandleUpdate(EffectHandler effectHandler, float healthPerTime)Runs the callback for one tick with the handler, the effect and that tick's share of strength.

Used in​

Members of other types that take, return or hold a EffectOverTimeData: