made some improvements on how the encounters trigger

This commit is contained in:
Sebastian Bularca
2026-05-22 13:47:44 +02:00
parent 8aea6f7eb3
commit dd049642b0
8 changed files with 174 additions and 58 deletions

View File

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