Property | Type | Description | |
---|---|---|---|
_effectCells | CellEffectData>.Dictionary | ||
_effects | CellEffectData>.Dictionary | ||
backingSurface | ITextSurface |
Method | Description | |
---|---|---|
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 ) : |
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 |
Changes the effect of the cells provided.
|
|
UpdateEffects ( double timeElapsed ) : void |
Updates all known effects and applies them to their associated cells.
|
Method | Description | |
---|---|---|
ClearCellEffect ( Cell cell ) : void | ||
GetKnownEffect ( ICellEffect effect, CellEffectData &effectData ) : bool |
protected ClearCellEffect ( Cell cell ) : void | ||
cell | Cell | |
return | void |
public EffectsManager ( ITextSurface surface ) : System | ||
surface | ITextSurface | Text surface to manage. |
return | System |
public GetEffect ( Cell cell ) : Effects.ICellEffect | ||
cell | Cell | |
return | Effects.ICellEffect |
protected GetKnownEffect ( ICellEffect effect, CellEffectData &effectData ) : bool | ||
effect | ICellEffect | |
effectData | CellEffectData | |
return | bool |
public static Load ( string file, ITextSurfaceRendered backingSurface ) : |
||
file | string | The file to load from. |
backingSurface | ITextSurfaceRendered | The surface the effects were originally (or will be) associated with. |
return |
public Remove ( ICellEffect effect ) : void | ||
effect | ICellEffect | Effect to remove. |
return | void |
public Save ( string file ) : void | ||
file | string | The file to save the effects to. |
return | void |
public SetEffect ( Cell cell, ICellEffect effect ) : void | ||
cell | Cell | Cells to change the effect on. |
effect | ICellEffect | The effect to associate with the cell. |
return | void |
public SetEffect ( IEnumerable |
||
cells | IEnumerable |
Cells to change the effect on. |
effect | ICellEffect | The effect to associate with the cell. |
return | void |
public UpdateEffects ( double timeElapsed ) : void | ||
timeElapsed | double | The time elapased since the last update. |
return | void |
protected Dictionary |
||
return | CellEffectData>.Dictionary |