TapeCommandResult
Namespace: Hex1b.Automation
Assembly: Hex1b.dll
Contains either a command's input-sequence builder or an error that prevents playback.
public sealed class TapeCommandResultInheritance
Object → TapeCommandResult
Properties
ErrorMessage
Gets the rejection message, or null if the command was accepted.
Returns: String
public string? ErrorMessage { get; }SequenceBuilder
Gets the accepted sequence builder, or null if the command was rejected.
Returns: Hex1bTerminalInputSequenceBuilder
public Hex1bTerminalInputSequenceBuilder? SequenceBuilder { get; }Methods
Accept(Hex1bTerminalInputSequenceBuilder)
Accepts a sequence builder for preparation without executing it.
Parameters:
builder(Hex1bTerminalInputSequenceBuilder): The builder containing this command's deferred input steps.
Returns: TapeCommandResult
An accepted command result.
public static TapeCommandResult Accept(Hex1bTerminalInputSequenceBuilder builder)Reject(string)
Rejects a command with an error that prevents the entire tape from executing.
Parameters:
message(String): The explanation to include in preparation diagnostics.
Returns: TapeCommandResult
A rejected command result.
public static TapeCommandResult Reject(string message)Remarks
The player prepares every command before executing any input. An accepted builder is snapshotted during preparation; rejection errors are reported with the command's source span. Acceptance does not indicate that the command has executed.