Conditions - WIP commit

This commit is contained in:
Robert committed 2020-04-28 09:14:23 +02:00
1 parent 5192b9f0f0
commit 145da2edac
10 files changed
+211 -4

No files matched your search

@@ -0,0 +1,33 @@
using System;
using Artemis.Core.Utilities;
namespace Artemis.Core.Models.Profile.LayerProperties
{
public class LayerPropertyKeyFrame<T>
{
private TimeSpan _position;
public LayerPropertyKeyFrame(LayerProperty<T> layerProperty, T value, TimeSpan position, Easings.Functions easingFunction)
{
_position = position;
Value = value;
LayerProperty = layerProperty;
EasingFunction = easingFunction;
}
public LayerProperty<T> LayerProperty { get; set; }
public T Value { get; set; }
public TimeSpan Position
{
get => _position;
set
{
_position = value;
LayerProperty.SortKeyframes();
}
}
public Easings.Functions EasingFunction { get; set; }
}
}