Table of Contents

Class M2EventTrackWotlkPlus

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

A timestamp-only event track, WotLK+ layout (every key fires).

public class M2EventTrackWotlkPlus : M2EventTrack, IDisposable, IAnimTimeline
Inheritance
M2EventTrackWotlkPlus
Implements
Inherited Members

Constructors

M2EventTrackWotlkPlus()

public M2EventTrackWotlkPlus()

M2EventTrackWotlkPlus(M2EventTrackWotlkPlus)

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

public M2EventTrackWotlkPlus(M2EventTrackWotlkPlus other)

Parameters

other M2EventTrackWotlkPlus

Properties

GlobalSequence

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

public ushort GlobalSequence { get; set; }

Property Value

ushort

InterpolationType

Interpolation: 0 none, 1 linear (keys fire, no value to interpolate).

public ushort InterpolationType { get; set; }

Property Value

ushort

Timestamps

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

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 trigger 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 (an external sequence's timeline is empty until its .anim data is loaded).

public ulong TimelineCount()

Returns

ulong

TimelineTimestamps(ulong)

One timeline's trigger 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

Operators

operator ==(M2EventTrackWotlkPlus?, M2EventTrackWotlkPlus?)

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

Parameters

l M2EventTrackWotlkPlus
r M2EventTrackWotlkPlus

Returns

bool

operator !=(M2EventTrackWotlkPlus?, M2EventTrackWotlkPlus?)

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

Parameters

l M2EventTrackWotlkPlus
r M2EventTrackWotlkPlus

Returns

bool