ParseCommandSetGlyph Class
Definition
Section titled “Definition”Prints a glyph.
public sealed class ParseCommandSetGlyph : ParseCommandBaseInheritance object → ParseCommandBase
Constructors
Section titled “Constructors”ParseCommandSetGlyph(string)
Section titled “ParseCommandSetGlyph(string)”Creates a new instance of this command.
public ParseCommandSetGlyph(string parameters)Parameters
Section titled “Parameters”parameters string
The string to parse for parameters.
Properties
Section titled “Properties”The glyph to set.
public char Glyph { get; set; }RandomGlyph
Section titled “RandomGlyph”Uses a random glyph.
public bool RandomGlyph { get; set; }RandomGlyphMin
Section titled “RandomGlyphMin”The minimum glyph to use with the random glyph.
public int RandomGlyphMin { get; set; }RandomGlyphMax
Section titled “RandomGlyphMax”The maximumglyph to use with the random glyph.
public int RandomGlyphMax { get; set; }Methods
Section titled “Methods”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.
public override void Build(ref ColoredGlyphAndEffect glyphState, ColoredGlyphAndEffect[] glyphString, int surfaceIndex, ICellSurface? surface, ref int stringIndex, ReadOnlySpan<char> processedString, ParseCommandStacks commandStack)Parameters
Section titled “Parameters”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.