Skip to content

Entity.SingleCell Class

An entity that is a single cell.

C#
[DataContract]
public class Entity.SingleCell

Inheritance object

Creates a new entity with the specified foreground, background, and glyph.

C#
public SingleCell(Color foreground, Color background, int glyph)

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.

Creates a new entity, references the provided glyph as the appearance.

C#
public SingleCell(ColoredGlyphBase appearance)

appearance ColoredGlyphBase
The appearance of the entity.

When true, indicates that this cell is dirty and needs to be redrawn.

C#
public bool IsDirty { get; set; }

Represents what the entity looks like.

C#
public ColoredGlyphBase Appearance { get; protected set; }

An effect that can be applied to the Appearance.

C#
public ICellEffect? Effect { get; set; }

If an effect is applied to the cell, updates the effect.

C#
public void Update(TimeSpan delta)

delta TimeSpan