pub fn resolve_effects<S: EffectSystem>(
system: &S,
state: &mut S::State,
initial: impl IntoIterator<Item = S::Effect>,
) -> usizeExpand description
Resolves initial and everything it triggers, applying each effect then
enqueuing its follow-ups, in FIFO order.
Returns the number of effects resolved. Stops at MAX_EFFECTS to bound a
non-terminating trigger loop (a game bug).