Debugger support for the scenario studio

Actions carry the scenario line they were parsed from (SourceLine);
ScenarioParser.SplitLine exposes the parser's line split. ScenarioEvent
remembers its source mod/file and can start at a label. DialogRuntime asks an
optional IDialogDebugger before every action and can be held; DialogBox
resumes a held dialog and aborts one without completing it.
This commit is contained in:
cthangover committed 2026-10-18 14:21:47 +02:00
1 parent 8982ad7092
commit aca89c631f
9 files changed
+222 -46

No files matched your search

+6
View File
@@ -39,6 +39,12 @@ namespace Cthangover.Mods.Dialog.Action
float WaitTime { get; }
/// <summary>Timestamp of the last <see cref="Run"/> call, in seconds since epoch.</summary>
float StartTime { get; }
/// <summary>
/// 1-based line of the scenario text this action was parsed from, 0 for
/// actions built in code. Set by <see cref="Scenarios.ScenarioParser"/>;
/// debugging tools map the running action back to the script with it.
/// </summary>
int SourceLine { get; set; }
#endregion