Class ChoreoSample
- Assembly
- ValveResourceFormat.dll
Represents a sample point in a choreography curve.
public class ChoreoSampleInheritance
Inherited Members
Constructors
ChoreoSample(float, float)
Initializes a new instance of the ValveResourceFormat.ResourceTypes.Choreo.ChoreoSample class.
public ChoreoSample(float time, float value)Parameters
Properties
Bezier
Gets the Bezier curve data for the sample.
public BezierData? Bezier { get; }Property Value
Curve
Gets the curve type for the sample.
public CurveType? Curve { get; }Property Value
Time
Gets the time of the sample.
public float Time { get; }Property Value
Value
Gets the value of the sample.
public float Value { get; }Property Value
Methods
SetBezierData(BezierFlags, float, float, float, float)
Sets the Bezier curve data for this sample.
public void SetBezierData(BezierFlags flags, float inDeg, float inWeight, float outDeg, float outWeight)Parameters
flagsBezierFlags-
The Bezier flags.
inDegfloat-
The in degrees.
inWeightfloat-
The in weight.
outDegfloat-
The out degrees.
outWeightfloat-
The out weight.
SetCurveType(byte, byte)
Sets the curve type for this sample.
public void SetCurveType(byte inType, byte outType)Parameters
ToKeyValues()
Converts this sample to a ValveResourceFormat.Serialization.KeyValues.KVObject.
public KVObject ToKeyValues()Returns
- KVObject
-
A ValveResourceFormat.Serialization.KeyValues.KVObject representing this sample.