Added the system from trail

This commit is contained in:
Sebastian Bularca
2026-04-19 12:25:49 +02:00
parent 47ee77f272
commit 89e36b4df9
57 changed files with 2160 additions and 15 deletions

View File

@@ -0,0 +1,15 @@
namespace Jovian.EncounterSystem {
/// <summary>
/// Per-resolution state passed into every event handler invoked by <see cref="EncounterResolver.Resolve"/>.
/// Holds "who/what is currently being resolved" — not long-lived services. Extend with additional
/// fields (party, selected option, acting character, …) as handlers need them.
/// </summary>
public class EncounterContext {
/// <summary>The encounter whose dialog option fired this resolution.</summary>
public IEncounter CurrentEncounter { get; }
public EncounterContext(IEncounter currentEncounter) {
CurrentEncounter = currentEncounter;
}
}
}