Added the system from trail
This commit is contained in:
15
Runtime/EncounterContext.cs
Normal file
15
Runtime/EncounterContext.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user