mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-16 02:09:20 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
47 lines
1.2 KiB
C#
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; }
|
|
}
|