mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
33 lines
815 B
C#
33 lines
815 B
C#
using System;
|
|
using Artemis.Core.Utilities;
|
|
|
|
namespace Artemis.Core.Models.Profile.LayerProperties
|
|
{
|
|
public class BaseKeyframe
|
|
{
|
|
private TimeSpan _position;
|
|
|
|
protected BaseKeyframe(Layer layer, BaseLayerProperty property)
|
|
{
|
|
Layer = layer;
|
|
BaseProperty = property;
|
|
}
|
|
|
|
public Layer Layer { get; set; }
|
|
|
|
public TimeSpan Position
|
|
{
|
|
get => _position;
|
|
set
|
|
{
|
|
if (value == _position) return;
|
|
_position = value;
|
|
BaseProperty.SortKeyframes();
|
|
}
|
|
}
|
|
|
|
protected BaseLayerProperty BaseProperty { get; }
|
|
public object BaseValue { get; internal set; }
|
|
public Easings.Functions EasingFunction { get; set; }
|
|
}
|
|
} |