Table of Contents

Class M2TrackSplineC3VectorVanillaToTbc

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

An animation track, pre-WotLK layout: one global timeline with per-sequence interpolation ranges.

public class M2TrackSplineC3VectorVanillaToTbc : M2TrackSplineC3Vector, IDisposable, IAnimTimeline
Inheritance
M2TrackSplineC3VectorVanillaToTbc
Implements
Inherited Members

Constructors

M2TrackSplineC3VectorVanillaToTbc()

public M2TrackSplineC3VectorVanillaToTbc()

M2TrackSplineC3VectorVanillaToTbc(M2TrackSplineC3VectorVanillaToTbc)

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

public M2TrackSplineC3VectorVanillaToTbc(M2TrackSplineC3VectorVanillaToTbc other)

Parameters

other M2TrackSplineC3VectorVanillaToTbc

Properties

GlobalSequence

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

public ushort GlobalSequence { get; set; }

Property Value

ushort

InterpolationRanges

Per-sequence [first, last] key-index ranges into the global timeline.

public Vector<M2Range> InterpolationRanges { get; set; }

Property Value

Vector<M2Range>

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

The global timeline's keyframe timestamps.

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

Property Value

Vector<uint>

Values

The keyframe values, one per timestamp.

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

Property Value

Vector<M2SplineKeyC3Vector>

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 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

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 Vector<M2SplineKeyC3Vector> TimelineValues(ulong timeline)

Parameters

timeline ulong

the timeline index

Returns

Vector<M2SplineKeyC3Vector>

the values; errors when timeline is out of range

Operators

operator ==(M2TrackSplineC3VectorVanillaToTbc?, M2TrackSplineC3VectorVanillaToTbc?)

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

Parameters

l M2TrackSplineC3VectorVanillaToTbc
r M2TrackSplineC3VectorVanillaToTbc

Returns

bool

operator !=(M2TrackSplineC3VectorVanillaToTbc?, M2TrackSplineC3VectorVanillaToTbc?)

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

Parameters

l M2TrackSplineC3VectorVanillaToTbc
r M2TrackSplineC3VectorVanillaToTbc

Returns

bool