Table of Contents

Class M2TrackUInt16WotlkPlus

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

An animation track, WotLK+ layout: one timestamp/value array per sequence; an external sequence keeps its arrays in the .anim file.

public class M2TrackUInt16WotlkPlus : M2TrackUInt16, IDisposable, IAnimTimeline
Inheritance
M2TrackUInt16WotlkPlus
Implements
Inherited Members

Constructors

M2TrackUInt16WotlkPlus()

public M2TrackUInt16WotlkPlus()

M2TrackUInt16WotlkPlus(M2TrackUInt16WotlkPlus)

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

public M2TrackUInt16WotlkPlus(M2TrackUInt16WotlkPlus other)

Parameters

other M2TrackUInt16WotlkPlus

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

Timestamps

Keyframe timestamps, one array per sequence (an external sequence keeps its arrays in the .anim file).

public Vector<Vector<uint>> Timestamps { get; set; }

Property Value

Vector<Vector<uint>>

Values

Keyframe values, per sequence, parallel to timestamps.

public Vector<Vector<ushort>> Values { get; set; }

Property Value

Vector<Vector<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 override void Dispose()

KeyCount(ulong)

The number of keys on one timeline.

public ulong KeyCount(ulong timeline)

Parameters

timeline ulong

the timeline index

Returns

ulong

the key count; errors when timeline is out of range

TimelineCount()

The number of timelines this track carries: one per sequence (a global-sequence-driven track stores a single timeline; an external sequence's timeline is empty until its .anim data is loaded).

public ulong TimelineCount()

Returns

ulong

TimelineTimestamps(ulong)

One timeline's keyframe timestamps, as a copy.

public uint[] TimelineTimestamps(ulong timeline)

Parameters

timeline ulong

the timeline index

Returns

uint[]

the timestamps; errors when timeline is out of range

TimelineValues(ulong)

One timeline's keyframe values, as a copy.

public ushort[] TimelineValues(ulong timeline)

Parameters

timeline ulong

the timeline index

Returns

ushort[]

the values; errors when timeline is out of range

Operators

operator ==(M2TrackUInt16WotlkPlus?, M2TrackUInt16WotlkPlus?)

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

Parameters

l M2TrackUInt16WotlkPlus
r M2TrackUInt16WotlkPlus

Returns

bool

operator !=(M2TrackUInt16WotlkPlus?, M2TrackUInt16WotlkPlus?)

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

Parameters

l M2TrackUInt16WotlkPlus
r M2TrackUInt16WotlkPlus

Returns

bool