Interface IEffectInstigator
- Namespace
- ElectricDrill.AstraRpgFramework.Contexts
- Assembly
- com.electricdrill.astra-rpg-framework.Runtime.dll
Marker interface for anything that can be the specific cause of a game effect: an ability definition, a modifier definition or instance, a passive skill, a game system, etc.
Unlike IEffectInstigator — which identifies the entity responsible for an effect — IEffectInstigator identifies the specific thing that produced it.
Consumers use pattern matching (instigator is MyType t) to identify and react to specific
instigator types. This design places no constraints on what an instigator must expose, and allows
any future type to participate without changes to this interface.
public interface IEffectInstigator