ColoredGlyphState Struct
Definition
Section titled “Definition”A ColoredGlyphBase with state information.
public readonly struct ColoredGlyphStateConstructors
Section titled “Constructors”ColoredGlyphState(ColoredGlyphBase)
Section titled “ColoredGlyphState(ColoredGlyphBase)”Creates a new state from a cell.
public ColoredGlyphState(ColoredGlyphBase cell)Parameters
Section titled “Parameters”cell ColoredGlyphBase
The colored glyph this state is a copy of.
ColoredGlyphState(CellDecorator[], Color, Color, int, Mirror, bool)
Section titled “ColoredGlyphState(CellDecorator[], Color, Color, int, Mirror, bool)”Creates a new state.
[JsonConstructor]public ColoredGlyphState(CellDecorator[] decorators, Color foreground, Color background, int glyph, Mirror mirror, bool isVisible)Parameters
Section titled “Parameters”decorators CellDecorator[]
Decorators for the cell.
foreground SadRogue.Primitives.Color
Foreground color.
background SadRogue.Primitives.Color
Background color.
glyph int
The glyph index.
mirror Mirror
The mirror effect.
isVisible bool
The visibility of the glyph.
Properties
Section titled “Properties”Decorators
Section titled “Decorators”A copy of the Decorators property.
public CellDecorator[] Decorators { get; }Foreground
Section titled “Foreground”A copy of the Foreground property.
public Color Foreground { get; }Background
Section titled “Background”A copy of the Background property.
public Color Background { get; }A copy of the Glyph property.
public int Glyph { get; }Mirror
Section titled “Mirror”A copy of the Mirror property.
public Mirror Mirror { get; }IsVisible
Section titled “IsVisible”A copy of the IsVisible property.
public bool IsVisible { get; }Methods
Section titled “Methods”RestoreState(ref ColoredGlyphBase)
Section titled “RestoreState(ref ColoredGlyphBase)”Restores this state to the specified cell.
public void RestoreState(ref ColoredGlyphBase cell)Parameters
Section titled “Parameters”cell ColoredGlyphBase