16 lines
683 B
C#
16 lines
683 B
C#
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;
|
|
}
|
|
}
|
|
}
|