mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
22 lines
593 B
C#
22 lines
593 B
C#
using System;
|
|
using Robust.Shared.Animations;
|
|
|
|
namespace Robust.Client.Animations
|
|
{
|
|
public sealed 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);
|
|
}
|
|
}
|
|
}
|