Added effect engine

This commit is contained in:
DarthAffe committed 2015-10-03 15:10:51 +02:00
1 parent 78bbc577d3
commit ddbfe5f74c
9 files changed
+271 -25

No files matched your search

@@ -0,0 +1,23 @@
namespace CUE.NET.Devices.Keyboard.Effects
{
internal class EffectTimeContainer
{
#region Properties & Fields
internal IEffect Effect { get; set; }
internal long TicksAtLastUpdate { get; set; }
#endregion
#region Constructors
internal EffectTimeContainer(IEffect effect, long ticksAtLastUpdate)
{
Effect = effect;
TicksAtLastUpdate = ticksAtLastUpdate;
}
#endregion
}
}
+29
View File
@@ -0,0 +1,29 @@
using System.Collections.Generic;
using CUE.NET.Devices.Keyboard.Brushes;
using CUE.NET.Devices.Keyboard.Keys;
namespace CUE.NET.Devices.Keyboard.Effects
{
public interface IEffect
{
#region Properties & Fields
IBrush EffectBrush { get; }
IEnumerable<CorsairKey> KeyList { get; }
bool IsDone { get; }
#endregion
#region Methods
void Update(float deltaTime);
void OnAttach();
void OnDetach();
#endregion
}
}