Class AnimationSegmentDecoder
- Assembly
- ValveResourceFormat.dll
Base class for animation segment decoders that read compressed animation data.
public abstract class AnimationSegmentDecoder
Inheritance
Derived
Inherited Members
Properties
ChannelAttribute
Gets the channel attribute type.
public AnimationChannelAttribute ChannelAttribute { get; }
Property Value
Data
Gets the raw animation data segment.
protected ArraySegment<byte> Data { get; }
Property Value
ElementCount
Gets the total number of elements in the segment.
protected int ElementCount { get; }
Property Value
RemapTable
Gets the remap table for mapping elements to bones or flex controllers.
public int[] RemapTable { get; }
Property Value
- int[]
WantedElements
Gets the array of element indices to decode.
protected int[] WantedElements { get; }
Property Value
- int[]
Methods
Initialize(ArraySegment<byte>, int[], int[], AnimationChannelAttribute, int)
Initializes the decoder with data and mapping information.
public void Initialize(ArraySegment<byte> data, int[] wantedElements, int[] remapTable, AnimationChannelAttribute channelAttribute, int elementCount = 1)
Parameters
data
ArraySegment<byte>wantedElements
int[]remapTable
int[]channelAttribute
AnimationChannelAttributeelementCount
int
Read(int, Frame)
Reads and decodes animation data for a specific frame.
public abstract void Read(int frameIndex, Frame outFrame)