C# 클래스 SadConsole.Effects.EffectsManager

Effects manager for a text surface.
파일 보기 프로젝트 열기: Thraka/SadConsole 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_effectCells CellEffectData>.Dictionary
_effects CellEffectData>.Dictionary
backingSurface ITextSurface

공개 메소드들

메소드 설명
EffectsManager ( ITextSurface surface ) : System

Creates a new effects manager associated with a text surface.

GetEffect ( Cell cell ) : Effects.ICellEffect

Gets the effect of the specified cell.

GetEffects ( ) : IEnumerable
Load ( string file, ITextSurfaceRendered backingSurface ) : EffectsManager

Loads effects from a file.

Remove ( ICellEffect effect ) : void

Removes an effect and associated cells from the manager.

RemoveAll ( ) : void

Removes all effects and associated cells.

Save ( string file ) : void

Saves the effects and the associated cell indexes from the backing surface.

SetEffect ( Cell cell, ICellEffect effect ) : void

Changes the effect of a specific cell.

SetEffect ( IEnumerable cells, ICellEffect effect ) : void

Changes the effect of the cells provided.

UpdateEffects ( double timeElapsed ) : void

Updates all known effects and applies them to their associated cells.

보호된 메소드들

메소드 설명
ClearCellEffect ( Cell cell ) : void
GetKnownEffect ( ICellEffect effect, CellEffectData &effectData ) : bool

메소드 상세

ClearCellEffect() 보호된 메소드

protected ClearCellEffect ( Cell cell ) : void
cell Cell
리턴 void

EffectsManager() 공개 메소드

Creates a new effects manager associated with a text surface.
public EffectsManager ( ITextSurface surface ) : System
surface ITextSurface Text surface to manage.
리턴 System

GetEffect() 공개 메소드

Gets the effect of the specified cell.
public GetEffect ( Cell cell ) : Effects.ICellEffect
cell Cell
리턴 Effects.ICellEffect

GetEffects() 공개 메소드

public GetEffects ( ) : IEnumerable
리턴 IEnumerable

GetKnownEffect() 보호된 메소드

protected GetKnownEffect ( ICellEffect effect, CellEffectData &effectData ) : bool
effect ICellEffect
effectData CellEffectData
리턴 bool

Load() 공개 정적인 메소드

Loads effects from a file.
public static Load ( string file, ITextSurfaceRendered backingSurface ) : EffectsManager
file string The file to load from.
backingSurface ITextSurfaceRendered The surface the effects were originally (or will be) associated with.
리턴 EffectsManager

Remove() 공개 메소드

Removes an effect and associated cells from the manager.
public Remove ( ICellEffect effect ) : void
effect ICellEffect Effect to remove.
리턴 void

RemoveAll() 공개 메소드

Removes all effects and associated cells.
public RemoveAll ( ) : void
리턴 void

Save() 공개 메소드

Saves the effects and the associated cell indexes from the backing surface.
public Save ( string file ) : void
file string The file to save the effects to.
리턴 void

SetEffect() 공개 메소드

Changes the effect of a specific cell.
public SetEffect ( Cell cell, ICellEffect effect ) : void
cell Cell Cells to change the effect on.
effect ICellEffect The effect to associate with the cell.
리턴 void

SetEffect() 공개 메소드

Changes the effect of the cells provided.
public SetEffect ( IEnumerable cells, ICellEffect effect ) : void
cells IEnumerable Cells to change the effect on.
effect ICellEffect The effect to associate with the cell.
리턴 void

UpdateEffects() 공개 메소드

Updates all known effects and applies them to their associated cells.
public UpdateEffects ( double timeElapsed ) : void
timeElapsed double The time elapased since the last update.
리턴 void

프로퍼티 상세

_effectCells 보호되어 있는 프로퍼티

protected Dictionary _effectCells
리턴 CellEffectData>.Dictionary

_effects 보호되어 있는 프로퍼티

protected Dictionary _effects
리턴 CellEffectData>.Dictionary

backingSurface 보호되어 있는 프로퍼티

protected ITextSurface backingSurface
리턴 ITextSurface