Skip to main content

Piece struct

Namespace: Arlecchino.Modals · Assembly: Arlecchino

One run of a line inside a dialog, with the color it is written in.

public readonly struct Piece : IEquatable<Piece>

Implements IEquatable<T><Piece>

Constructors

MemberSummary
Piece(string, IArlecchinoColor)One run of a line inside a dialog, with the color it is written in.

Properties

MemberSummary
StyleHow they are written.
TextThe words.

Methods

MemberSummary
Deconstruct(out string, out IArlecchinoColor)

Constructors in detail

Piece(string, IArlecchinoColor)

public Piece(string Text, IArlecchinoColor Style);

One run of a line inside a dialog, with the color it is written in.

Parameters

NameTypeDescription
TextstringThe words.
StyleIArlecchinoColorHow they are written.

Properties in detail

Style

public IArlecchinoColor Style { get; init; }

How they are written.

Type IArlecchinoColor

Text

public string Text { get; init; }

The words.

Type string

Methods in detail

Deconstruct(out string, out IArlecchinoColor)

public void Deconstruct(out string Text, out IArlecchinoColor Style);

Parameters

NameTypeDescription
Textstring
StyleIArlecchinoColor