mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* Removed the Interfaces folder. * All objects inside the GameObjects subfolders are now in the GameObjects namespace. * Added a Resharper DotSettings file to mark the GameObjects subfolders as not providing namespaces. * Simplified Robust.client.Graphics namespace. * Automated remove redundant using statements.
22 lines
586 B
C#
22 lines
586 B
C#
using System;
|
|
using Robust.Shared.Animations;
|
|
|
|
namespace Robust.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);
|
|
}
|
|
}
|
|
}
|