Show / Hide Table of Contents

Class EffectSet

Chains one effect after another.

Inheritance
object
CellEffectBase
EffectSet
Implements
ICellEffect
IEnumerable<ICellEffect>
IEnumerable
Inherited Members
CellEffectBase._delayFinished
CellEffectBase._timeElapsed
CellEffectBase.IsFinished
CellEffectBase.CloneOnAdd
CellEffectBase.StartDelay
CellEffectBase.RemoveOnFinished
CellEffectBase.RestoreCellOnRemoved
CellEffectBase.RunEffectOnApply
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: SadConsole.Effects
Assembly: SadConsole.dll
Syntax
[DataContract]
public class EffectSet : CellEffectBase, ICellEffect, IEnumerable<ICellEffect>, IEnumerable

Constructors

EffectSet()

Declaration
public EffectSet()

Properties

DelayBetweenEffects

An artificial delay between each effect.

Declaration
[DataMember]
public TimeSpan DelayBetweenEffects { get; set; }
Property Value
Type Description
TimeSpan

Effects

The list of effects to process.

Declaration
[DataMember]
public LinkedList<ICellEffect> Effects { get; }
Property Value
Type Description
LinkedList<ICellEffect>

Repeat

When true, instead of ending when finished, it will repeat. Otherwise, false.

Declaration
[DataMember]
public bool Repeat { get; set; }
Property Value
Type Description
bool

Methods

Add(ICellEffect)

Adds an effect to the end of the Effects collection.

Declaration
public void Add(ICellEffect effect)
Parameters
Type Name Description
ICellEffect effect

The effect to add.

ApplyToCell(ColoredGlyphBase, ColoredGlyphBase)

Applies the state of the effect to a cell.

Declaration
public override bool ApplyToCell(ColoredGlyphBase cell, ColoredGlyphBase originalState)
Parameters
Type Name Description
ColoredGlyphBase cell

The surface cell using this effect.

ColoredGlyphBase originalState

The state of the cell prior to the effect being applied.

Returns
Type Description
bool

true when this method modified the cell; otherwise false.

Overrides
CellEffectBase.ApplyToCell(ColoredGlyphBase, ColoredGlyphBase)

Clone()

Returns a duplicate of this effect.

Declaration
public override ICellEffect Clone()
Returns
Type Description
ICellEffect

A new copy of this effect.

Overrides
CellEffectBase.Clone()

GetEnumerator()

Gets an enumerator of all the effects.

Declaration
public IEnumerator<ICellEffect> GetEnumerator()
Returns
Type Description
IEnumerator<ICellEffect>

The enumerator.

Restart()

Restarts the cell effect but does not reset it.

Declaration
public override void Restart()
Overrides
CellEffectBase.Restart()

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Update(TimeSpan)

Updates the state of the effect.

Declaration
public override void Update(TimeSpan delta)
Parameters
Type Name Description
TimeSpan delta

Time since the last call to this effect.

Overrides
CellEffectBase.Update(TimeSpan)

Implements

ICellEffect
IEnumerable<T>
IEnumerable

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX