mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Started work on the keyframe engine to tie everything together!
This commit is contained in:
1 parent
7a3b5dec3e
commit
acdb90897e
28 files changed
+339
-107
No files matched your search
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Artemis.Core.Models.Profile.LayerProperties;
|
||||
|
||||
namespace Artemis.Core.Models.Profile.KeyframeEngines
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public class FloatKeyframeEngine : KeyframeEngine
|
||||
{
|
||||
public sealed override List<Type> CompatibleTypes { get; } = new List<Type> {typeof(float)};
|
||||
|
||||
public override object GetCurrentValue()
|
||||
{
|
||||
// Nothing fancy for now, just return the base value
|
||||
return ((LayerProperty<float>) LayerProperty).Value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user