Table of Contents

Class M2TrackCompQuat

Namespace
WoWLib.Formats.M2.Root.Record
Assembly
WoWLib.dll

An animation track family for one value type, abstract over the client version; the per-version classes are subclasses.

public class M2TrackCompQuat : IDisposable, IAnimTimeline
Inheritance
M2TrackCompQuat
Implements
Derived
Inherited Members

Constructors

M2TrackCompQuat()

public M2TrackCompQuat()

M2TrackCompQuat(M2TrackCompQuat)

Copy-construct: a deep copy of other (the C++ copy constructor).

public M2TrackCompQuat(M2TrackCompQuat other)

Parameters

other M2TrackCompQuat

Properties

GlobalSequence

The global sequence driving this track; -1: none.

public ushort GlobalSequence { get; set; }

Property Value

ushort

InterpolationType

Interpolation: 0 none, 1 linear, 2 bezier, 3 hermite (spline types only valid for spline-key tracks).

public ushort InterpolationType { get; set; }

Property Value

ushort

Methods

Dispose()

Release the native object now. Optional: the finalizer releases it on collection anyway - dispose (or using) when you want native memory back promptly.

public virtual void Dispose()

ForVersion(ClientVersion)

A fresh M2TrackCompQuat for an exact client version — the only axis that can name a Classic client, whose files follow the engine its build was cut on rather than its 1.15 / 4.4 version number.

public static M2TrackCompQuat ForVersion(ClientVersion version)

Parameters

version ClientVersion

Returns

M2TrackCompQuat

ForVersion(Expansion)

A fresh M2TrackCompQuat for the given era, as the family base — the dynamic twin of the typed Era factories.

public static M2TrackCompQuat ForVersion(Expansion era)

Parameters

era Expansion

Returns

M2TrackCompQuat

KeyCount(ulong)

The number of keys on one timeline.

public ulong KeyCount(ulong timeline)

Parameters

timeline ulong

Returns

ulong

TimelineCount()

The number of timelines this track carries: one per interpolation range, or a single timeline 0 for a global-sequence-driven or rangeless track (0 when the track is empty).

public ulong TimelineCount()

Returns

ulong

TimelineTimestamps(ulong)

One timeline's keyframe timestamps, as a copy.

public uint[] TimelineTimestamps(ulong timeline)

Parameters

timeline ulong

Returns

uint[]

TimelineValues(ulong)

One timeline's keyframe values, as a copy.

public Vector<M2CompQuat> TimelineValues(ulong timeline)

Parameters

timeline ulong

Returns

Vector<M2CompQuat>

Operators

operator ==(M2TrackCompQuat?, M2TrackCompQuat?)

public static bool operator ==(M2TrackCompQuat? l, M2TrackCompQuat? r)

Parameters

l M2TrackCompQuat
r M2TrackCompQuat

Returns

bool

operator !=(M2TrackCompQuat?, M2TrackCompQuat?)

public static bool operator !=(M2TrackCompQuat? l, M2TrackCompQuat? r)

Parameters

l M2TrackCompQuat
r M2TrackCompQuat

Returns

bool