Files
RobustToolbox/Robust.Client/Animations/AnimationTrackControlProperty.cs
T

23 lines
619 B
C#

using System;
using Robust.Client.Animations;
using Robust.Shared.Animations;
namespace Content.Client.Animations
{
public class AnimationTrackControlProperty : AnimationTrackProperty
{
public string? Property { get; set; }
protected override void ApplyProperty(object context, object value)
{
if (Property == null)
{
throw new InvalidOperationException("Must set property to change.");
}
// TODO: Attached property support?
AnimationHelper.SetAnimatableProperty(context, Property, value);
}
}
}