Profile editor service - Make keyframe selection an editor concern

This commit is contained in:
Robert committed 2022-01-20 00:24:48 +01:00
1 parent 98180df5f2
commit 6f269af8d4
19 files changed
+433 -352

No files matched your search

@@ -1,4 +1,6 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Artemis.Storage.Entities.Profile;
namespace Artemis.Core
@@ -52,6 +54,11 @@ namespace Artemis.Core
/// </summary>
string Path { get; }
/// <summary>
/// Gets a read-only list of all the keyframes on this layer property
/// </summary>
ReadOnlyCollection<ILayerPropertyKeyframe> UntypedKeyframes { get; }
/// <summary>
/// Gets the type of the property
/// </summary>
@@ -258,6 +258,9 @@ namespace Artemis.Core
/// </summary>
public ReadOnlyCollection<LayerPropertyKeyframe<T>> Keyframes { get; }
/// <inheritdoc />
public ReadOnlyCollection<ILayerPropertyKeyframe> UntypedKeyframes => new(Keyframes.Cast<ILayerPropertyKeyframe>().ToList());
/// <summary>
/// Gets the current keyframe in the timeline according to the current progress
/// </summary>