mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2025-12-12 16:58:29 +00:00
38 lines
798 B
C#
38 lines
798 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using CUE.NET.Devices.Keyboard.Brushes;
|
|
using CUE.NET.Devices.Keyboard.Keys;
|
|
|
|
namespace CUE.NET.Devices.Keyboard.Effects
|
|
{
|
|
public abstract class AbstractEffect : IEffect
|
|
{
|
|
#region Properties & Fields
|
|
|
|
public abstract IBrush EffectBrush { get; }
|
|
|
|
public IEnumerable<CorsairKey> KeyList { get; protected set; }
|
|
|
|
public bool IsDone { get; protected set; }
|
|
|
|
#endregion
|
|
|
|
#region Methods
|
|
|
|
public void SetTarget(IKeyGroup keyGroup)
|
|
{
|
|
KeyList = keyGroup.Keys.ToList();
|
|
}
|
|
|
|
public abstract void Update(float deltaTime);
|
|
|
|
public virtual void OnAttach()
|
|
{ }
|
|
|
|
public virtual void OnDetach()
|
|
{ }
|
|
|
|
#endregion
|
|
}
|
|
}
|