Class BowireScriptResult

Namespace
Kuestenlogik.Bowire.Scripting
Assembly
Kuestenlogik.Bowire.dll

What a script run came to.

public sealed record BowireScriptResult : IEquatable<BowireScriptResult>
Inheritance
BowireScriptResult
Implements
Inherited Members

Constructors

BowireScriptResult(bool, string?, bool, IReadOnlyList<string>)

What a script run came to.

public BowireScriptResult(bool Ok, string? Error, bool AssertFail, IReadOnlyList<string> Log)

Parameters

Ok bool

The script ran to its end.

Error string

Why it did not: the exception, the failed assertion, or the limit it hit.

AssertFail bool

It stopped at a ctx.assert.

Log IReadOnlyList<string>

What it wrote with ctx.log, in order.

Properties

AssertFail

It stopped at a ctx.assert.

public bool AssertFail { get; init; }

Property Value

bool

Error

Why it did not: the exception, the failed assertion, or the limit it hit.

public string? Error { get; init; }

Property Value

string

Log

What it wrote with ctx.log, in order.

public IReadOnlyList<string> Log { get; init; }

Property Value

IReadOnlyList<string>

Ok

The script ran to its end.

public bool Ok { get; init; }

Property Value

bool

Methods

Deconstruct(out bool, out string?, out bool, out IReadOnlyList<string>)

public void Deconstruct(out bool Ok, out string? Error, out bool AssertFail, out IReadOnlyList<string> Log)

Parameters

Ok bool
Error string
AssertFail bool
Log IReadOnlyList<string>

Equals(BowireScriptResult?)

public bool Equals(BowireScriptResult? other)

Parameters

other BowireScriptResult

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BowireScriptResult?, BowireScriptResult?)

public static bool operator ==(BowireScriptResult? left, BowireScriptResult? right)

Parameters

left BowireScriptResult
right BowireScriptResult

Returns

bool

operator !=(BowireScriptResult?, BowireScriptResult?)

public static bool operator !=(BowireScriptResult? left, BowireScriptResult? right)

Parameters

left BowireScriptResult
right BowireScriptResult

Returns

bool