mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-02 18:17:09 +02:00
* 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.
21 lines
647 B
C#
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; }
|
|
}
|
|
}
|