Skip to content

EffectsManager.ColoredGlyphEffectData Class

Represents a mapping of a single effect and associated cells.

C#
protected class EffectsManager.ColoredGlyphEffectData

Inheritance object

Creates a new instance of the cell-effect mapping.

C#
public ColoredGlyphEffectData(ICellEffect effect)

effect ICellEffect
The effect.

The effect.

C#
public ICellEffect Effect

The cells affected by the effect.

C#
public List<EffectsManager.ColoredGlyphWithState> CellsStates

Removes a cell by index from the effect data.

C#
public void RemoveCell(ColoredGlyphBase cell, bool restoreState)

cell ColoredGlyphBase
The cell.

restoreState bool
If true the cell will have its original state restored; otherwise false.

Returns true when the cell index is already associated with the effect; otherwise false.

C#
public bool ContainsCell(ColoredGlyphBase cell)

cell ColoredGlyphBase
The cell to check.

bool
true to indicate the cell is associated with the effect; otherwise false.