C# Class Artemis.Managers.EffectManager

Manages the effects
Mostrar archivo Open project: SpoinkyNL/Artemis Class Usage Examples

Public Methods

Method Description
ChangeEffect ( EffectModel effectModel, LoopManager loopManager = null ) : void

Disables the current effect and changes it to the provided effect.

ClearEffect ( ) : void

Clears the current effect

DisableGame ( EffectModel activeEffect ) : void

Disables the given game

DisableInactiveGame ( ) : void

Disables the current ActiveEffect if it's a game that is disabled.

EffectManager ( ILogger logger, DeviceManager deviceManager ) : System
GetLastEffect ( ) : EffectModel

Loads the last active effect from settings and enables it.

Protected Methods

Method Description
RaiseEffectChangedEvent ( EffectChangedEventArgs e ) : void

Private Methods

Method Description
DeviceManagerOnOnKeyboardChangedEvent ( object sender, KeyboardChangedEventArgs e ) : void

Method Details

ChangeEffect() public method

Disables the current effect and changes it to the provided effect.
public ChangeEffect ( EffectModel effectModel, LoopManager loopManager = null ) : void
effectModel Artemis.Models.EffectModel The effect to activate
loopManager LoopManager Optionally pass the LoopManager to automatically start it, if it's not running.
return void

ClearEffect() public method

Clears the current effect
public ClearEffect ( ) : void
return void

DisableGame() public method

Disables the given game
public DisableGame ( EffectModel activeEffect ) : void
activeEffect Artemis.Models.EffectModel
return void

DisableInactiveGame() public method

Disables the current ActiveEffect if it's a game that is disabled.
public DisableInactiveGame ( ) : void
return void

EffectManager() public method

public EffectManager ( ILogger logger, DeviceManager deviceManager ) : System
logger ILogger
deviceManager DeviceManager
return System

GetLastEffect() public method

Loads the last active effect from settings and enables it.
public GetLastEffect ( ) : EffectModel
return Artemis.Models.EffectModel

RaiseEffectChangedEvent() protected method

protected RaiseEffectChangedEvent ( EffectChangedEventArgs e ) : void
e Artemis.Events.EffectChangedEventArgs
return void