Files
sbox-public/engine/Sandbox.Engine/Systems/Render/MorphCollection.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

53 lines
1.2 KiB
C#

namespace Sandbox;
/// <summary>
/// Used to access and manipulate morphs.
/// </summary>
public abstract class MorphCollection
{
/// <summary>
/// Reset all morphs to their default values.
/// </summary>
public abstract void ResetAll();
/// <summary>
/// Reset morph number i to its default value.
/// </summary>
public abstract void Reset( int i );
/// <summary>
/// Reset named morph to its default value.
/// </summary>
public abstract void Reset( string name );
/// <summary>
/// Set indexed morph to this value.
/// </summary>
public abstract void Set( int i, float weight );
/// <summary>
/// Set named morph to this value.
/// </summary>
public abstract void Set( string name, float weight );
/// <summary>
/// Get indexed morph value (Note: Currently, this only gets the override morph value)
/// </summary>
public abstract float Get( int i );
/// <summary>
/// Get named morph value (Note: Currently, this only gets the override morph value)
/// </summary>
public abstract float Get( string name );
/// <summary>
/// Retrieve name of a morph at given index.
/// </summary>
public abstract string GetName( int index );
/// <summary>
/// Amount of morphs.
/// </summary>
public abstract int Count { get; }
}