// ReSharper disable MemberCanBePrivate.Global
using CUE.NET.Devices.Keyboard.Keys;
namespace CUE.NET.Effects
{
///
/// Represents a basic effect targeting an .
///
public abstract class AbstractKeyGroupEffect : IEffect
{
#region Properties & Fields
///
/// Gets or sets if this effect has finished all of his work.
///
public bool IsDone { get; protected set; }
///
/// Gets the this effect is targeting.
///
protected IKeyGroup KeyGroup { get; private set; }
#endregion
#region Methods
///
/// Updates the effect.
///
/// The elapsed time (in seconds) since the last update.
public abstract void Update(float deltaTime);
///
/// Hook which is called when the effect is attached to a device.
///
/// The this effect is attached to.
public virtual void OnAttach(IKeyGroup target)
{
KeyGroup = target;
}
///
/// Hook which is called when the effect is detached from a device.
///
/// The this effect is detached from.
public virtual void OnDetach(IKeyGroup target)
{
KeyGroup = null;
}
#endregion
}
}