Skip to content

ParseCommandSetGlyph Class

Prints a glyph.

C#
public sealed class ParseCommandSetGlyph : ParseCommandBase

Inheritance objectParseCommandBase

Creates a new instance of this command.

C#
public ParseCommandSetGlyph(string parameters)

parameters string
The string to parse for parameters.

The glyph to set.

C#
public char Glyph { get; set; }

Uses a random glyph.

C#
public bool RandomGlyph { get; set; }

The minimum glyph to use with the random glyph.

C#
public int RandomGlyphMin { get; set; }

The maximumglyph to use with the random glyph.

C#
public int RandomGlyphMax { get; set; }

Build(ref ColoredGlyphAndEffect, ColoredGlyphAndEffect[], int, ICellSurface?, ref int, ReadOnlySpan<char>, ParseCommandStacks)

Section titled “Build(ref ColoredGlyphAndEffect, ColoredGlyphAndEffect[], int, ICellSurface?, ref int, ReadOnlySpan<char>, ParseCommandStacks)”

Builds a glyph.

C#
public override void Build(ref ColoredGlyphAndEffect glyphState, ColoredGlyphAndEffect[] glyphString, int surfaceIndex, ICellSurface? surface, ref int stringIndex, ReadOnlySpan<char> processedString, ParseCommandStacks commandStack)

glyphState ColoredGlyphAndEffect
The current glyph being built.

glyphString ColoredGlyphAndEffect[]
The current string of glyphs that has been processed until now.

surfaceIndex int
Where on the surface this glyph will appear.

surface ICellSurface
The surface associated with the glyph.

stringIndex int
Where in the original string this glyph is from.

processedString ReadOnlySpan<char>
The entire string being processed.

commandStack ParseCommandStacks
The state of commands.