pub trait EffectCb {
// Required methods
fn on_apply(
&mut self,
sink: &mut dyn FightSink,
effect: &EffectTpl,
target: &Entity,
) -> Result<(), Error>;
fn on_change(
&mut self,
sink: &mut dyn FightSink,
effect: &EffectTpl,
target: &Entity,
new_stacks: i64,
old_stacks: i64,
) -> Result<(), Error>;
}Expand description
Invokes an effect’s on_apply / on_change reaction.