Class ParseCommandBlink
Blinks characters.
Inherited Members
Namespace: SadConsole.StringParser
Assembly: SadConsole.dll
Syntax
public sealed class ParseCommandBlink : ParseCommandBase
Constructors
ParseCommandBlink(string, ColoredGlyphBase[], ParseCommandStacks, ICellSurface?)
Creates a new instance of this command.
Declaration
public ParseCommandBlink(string parameters, ColoredGlyphBase[] glyphString, ParseCommandStacks commandStack, ICellSurface? surface)
Parameters
Type | Name | Description |
---|---|---|
string | parameters | The string to parse for parameters. |
ColoredGlyphBase[] | glyphString | The string that has been processed so far. |
ParseCommandStacks | commandStack | The current commands for the string. |
ICellSurface | surface | The surface hosting the string. |
Fields
Speed
The speed of the blink.
Declaration
public TimeSpan Speed
Field Value
Type | Description |
---|---|
TimeSpan |
Methods
Build(ref ColoredGlyphAndEffect, ColoredGlyphAndEffect[], int, ICellSurface?, ref int, ReadOnlySpan<char>, ParseCommandStacks)
Builds a glyph.
Declaration
public override void Build(ref ColoredGlyphAndEffect glyphState, ColoredGlyphAndEffect[] glyphString, int surfaceIndex, ICellSurface? surface, ref int stringIndex, ReadOnlySpan<char> processedString, ParseCommandStacks commandStack)
Parameters
Type | Name | Description |
---|---|---|
ColoredGlyphAndEffect | glyphState | The current glyph being built. |
ColoredGlyphAndEffect[] | glyphString | The current string of glyphs that has been processed until now. |
int | surfaceIndex | Where on the surface this glyph will appear. |
ICellSurface | surface | The surface associated with the glyph. |
int | stringIndex | Where in the original string this glyph is from. |
ReadOnlySpan<char> | processedString | The entire string being processed. |
ParseCommandStacks | commandStack | The state of commands. |