Skip to main content

Module effect_context

Module effect_context 

Source
Expand description

EffectContext โ€” bundle of subsystem refs threaded through effect resolution.

Rust-specific concession: Java reaches Game.getTriggerHandler(), agents, combat, mana pools via chained getters from SpellAbility.getHostCard(). The Rust engine deliberately owns those subsystems outside GameState (see trigger_handler.rs top comment), so every resolver needs a handful of mutable references. This struct packs them.

Structsยง

EffectContext
Everything an effect needs to resolve.