namespace Jovian.EncounterSystem { /// Per-resolution scratch object passed to every event handler. Extend with fields as handlers need them. public class EncounterContext { public IEncounter CurrentEncounter { get; } public EncounterRegistry Registry { get; set; } /// Set to true to halt processing of remaining events. public bool ShouldStopEvents { get; set; } public EncounterContext(IEncounter currentEncounter) { CurrentEncounter = currentEncounter; } } }