2024-08-16 21:39:13 +00:00
|
|
|
namespace MultiversalDiplomacy.Script;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// A handler that interprets and executes 5dp script commands. Script handlers may create additional script handlers
|
|
|
|
/// and delegate handling to them, allowing a sort of recursive parsing of script commands.
|
|
|
|
/// </summary>
|
|
|
|
public interface IScriptHandler
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// When used interactively, the prompt that should be displayed.
|
|
|
|
/// </summary>
|
|
|
|
public string Prompt { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Process a line of input.
|
|
|
|
/// </summary>
|
2024-09-03 03:20:59 +00:00
|
|
|
public ScriptResult HandleInput(string input);
|
2024-08-16 21:39:13 +00:00
|
|
|
}
|