Files
sbox-public/engine/Sandbox.Engine/Systems/Render/AnimationSequence.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

47 lines
1.2 KiB
C#

namespace Sandbox;
public abstract class AnimationSequence
{
/// <summary>
/// The duration of the currently playing sequence (seconds)
/// </summary>
public abstract float Duration { get; }
/// <summary>
/// Get whether the current animation sequence has finished
/// </summary>
public abstract bool IsFinished { get; }
/// <summary>
/// The name of the currently playing animation sequence
/// </summary>
public abstract string Name { get; set; }
/// <summary>
/// The normalized (between 0 and 1) elapsed time of the currently playing
/// animation sequence
/// </summary>
public abstract float TimeNormalized { get; set; }
/// <summary>
/// The elapsed time of the currently playing animation sequence (seconds)
/// </summary>
public abstract float Time { get; set; }
/// <summary>
/// Get or set whether the current animation sequence is looping
/// </summary>
internal abstract bool Looping { set; }
/// <summary>
/// Get or set whether animations blend smoothly when transitioning between sequences.
/// </summary>
internal abstract bool Blending { set; }
/// <summary>
/// The list of sequences that can be used
/// </summary>
public abstract IReadOnlyList<string> SequenceNames { get; }
}