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