Files
RobustToolbox/Robust.Client/Animations/Animation.cs
T
Pieter-Jan BriersandGitHub 5d5b897a9b Property animations track (#867)
* WiP property animations system

* Use better lerp for Angle property animations.

* Fix handling of offset in sprite component.

* Allow animating some sprite layer properties.

* Allow animating some Transform properties.

Obviously not advisable for server entities, but great for client side entities!

* Improve animation property interpolation handling.

Added a "previous" mode.
Made values that cannot be sanely interpolated fall back to this mode.

* Improve some animation docs.
2019-09-17 22:57:12 +02:00

21 lines
647 B
C#

using System;
using System.Collections.Generic;
using Robust.Client.GameObjects.Components.Animations;
namespace Robust.Client.Animations
{
/// <summary>
/// A animation represents a way to animate something, using keyframes and such.
/// </summary>
/// <remarks>
/// An animation is a collection of <see cref="AnimationTracks"/>, which are all executed in sync.
/// </remarks>
/// <seealso cref="AnimationPlayerComponent"/>
public sealed class Animation
{
public readonly List<AnimationTrack> AnimationTracks = new List<AnimationTrack>();
public TimeSpan Length { get; set; }
}
}