Entity.SingleCell Class
Definition
Section titled “Definition”An entity that is a single cell.
[DataContract]public class Entity.SingleCellInheritance object
Constructors
Section titled “Constructors”SingleCell(Color, Color, int)
Section titled “SingleCell(Color, Color, int)”Creates a new entity with the specified foreground, background, and glyph.
public SingleCell(Color foreground, Color background, int glyph)Parameters
Section titled “Parameters”foreground SadRogue.Primitives.Color
The foreground color of the entity.
background SadRogue.Primitives.Color
The background color of the entity.
glyph int
The glyph color of the entity.
SingleCell(ColoredGlyphBase)
Section titled “SingleCell(ColoredGlyphBase)”Creates a new entity, references the provided glyph as the appearance.
public SingleCell(ColoredGlyphBase appearance)Parameters
Section titled “Parameters”appearance ColoredGlyphBase
The appearance of the entity.
Properties
Section titled “Properties”IsDirty
Section titled “IsDirty”When true, indicates that this cell is dirty and needs to be redrawn.
public bool IsDirty { get; set; }Appearance
Section titled “Appearance”Represents what the entity looks like.
public ColoredGlyphBase Appearance { get; protected set; }Effect
Section titled “Effect”An effect that can be applied to the Appearance.
public ICellEffect? Effect { get; set; }Methods
Section titled “Methods”Update(TimeSpan)
Section titled “Update(TimeSpan)”If an effect is applied to the cell, updates the effect.
public void Update(TimeSpan delta)Parameters
Section titled “Parameters”delta TimeSpan