Fxed an issue with random encounters, added a repeatable property, add event for abandoning encounters

This commit is contained in:
Sebastian Bularca
2026-05-22 13:53:00 +02:00
parent d14c5cdc2d
commit 0902836a61
6 changed files with 51 additions and 23 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;