CellDecorator Struct
Definition
Section titled “Definition”Decorates a cell with a colored glyph.
[DataContract]public readonly struct CellDecorator : IEquatable<CellDecorator>Implements IEquatable<CellDecorator>
Constructors
Section titled “Constructors”CellDecorator(Color, int, Mirror)
Section titled “CellDecorator(Color, int, Mirror)”Creates a new decorator with the specified colors, glyph, visiblity, and mirror settings.
public CellDecorator(Color color, int glyph, Mirror mirror)Parameters
Section titled “Parameters”color SadRogue.Primitives.Color
Foreground color.
glyph int
Glyph value.
mirror Mirror
Mirror setting.
Properties
Section titled “Properties”An empty cell decorator.
public static CellDecorator Empty { get; }Foreground color of the decorator.
[DataMember]public Color Color { get; init; }Glyph of the decorator.
[DataMember]public int Glyph { get; init; }Mirror
Section titled “Mirror”Mirror setting of the decorator.
[DataMember]public Mirror Mirror { get; init; }Methods
Section titled “Methods”Equals(CellDecorator)
Section titled “Equals(CellDecorator)”Determines if this object has the same value as the other.
public bool Equals(CellDecorator other)Parameters
Section titled “Parameters”other CellDecorator
The object to test against.
Returns
Section titled “Returns”bool
True if the objects have the same values.
Equals(object?)
Section titled “Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object
Returns
Section titled “Returns”GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()