Skip to content

TapeCommandResult

Namespace: Hex1b.Automation

Assembly: Hex1b.dll

Contains either a command's input-sequence builder or an error that prevents playback.

csharp
public sealed class TapeCommandResult

Inheritance

ObjectTapeCommandResult

Properties

ErrorMessage

Gets the rejection message, or null if the command was accepted.

Returns: String

csharp
public string? ErrorMessage { get; }

SequenceBuilder

Gets the accepted sequence builder, or null if the command was rejected.

Returns: Hex1bTerminalInputSequenceBuilder

csharp
public Hex1bTerminalInputSequenceBuilder? SequenceBuilder { get; }

Methods

Accept(Hex1bTerminalInputSequenceBuilder)

Accepts a sequence builder for preparation without executing it.

Parameters:

Returns: TapeCommandResult

An accepted command result.

csharp
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.

csharp
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.

Released under the MIT License.