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

