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
| Member | Summary |
|---|---|
Piece(string, IArlecchinoColor) | One run of a line inside a dialog, with the color it is written in. |
Properties
| Member | Summary |
|---|---|
Style | How they are written. |
Text | The words. |
Methods
| Member | Summary |
|---|---|
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
| Name | Type | Description |
|---|---|---|
Text | string | The words. |
Style | IArlecchinoColor | How 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
| Name | Type | Description |
|---|---|---|
Text | string | |
Style | IArlecchinoColor |