Table of Contents

Class ChoreoSample

Namespace
ValveResourceFormat.ResourceTypes.Choreo
Assembly
ValveResourceFormat.dll

Represents a sample point in a choreography curve.

public class ChoreoSample

Inheritance

Inherited Members

Constructors

ChoreoSample(float, float)

Initializes a new instance of the ValveResourceFormat.ResourceTypes.Choreo.ChoreoSample class.

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.

public BezierData? Bezier { get; }

Property Value

BezierData?

Curve

Gets the curve type for the sample.

public CurveType? Curve { get; }

Property Value

CurveType?

Time

Gets the time of the sample.

public float Time { get; }

Property Value

float

Value

Gets the value of the sample.

public float Value { get; }

Property Value

float

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

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.

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 ValveResourceFormat.Serialization.KeyValues.KVObject.

public KVObject ToKeyValues()

Returns

KVObject

A ValveResourceFormat.Serialization.KeyValues.KVObject representing this sample.