Table of Contents

Class M2TextureFlipbook

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

One texture flipbook animation. Abstract over the client version; construct a concrete version with M2TextureFlipbook.ForVersion / for_version.

public class M2TextureFlipbook : IDisposable
Inheritance
M2TextureFlipbook
Implements
Derived
Inherited Members

Constructors

M2TextureFlipbook()

public M2TextureFlipbook()

M2TextureFlipbook(M2TextureFlipbook)

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

public M2TextureFlipbook(M2TextureFlipbook other)

Parameters

other M2TextureFlipbook

Properties

Frames

Frame index keyframes.

public M2TrackUInt16 Frames { get; set; }

Property Value

M2TrackUInt16

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

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

ForVersion(ClientVersion)

A fresh M2TextureFlipbook 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 M2TextureFlipbook ForVersion(ClientVersion version)

Parameters

version ClientVersion

Returns

M2TextureFlipbook

ForVersion(Expansion)

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

public static M2TextureFlipbook ForVersion(Expansion era)

Parameters

era Expansion

Returns

M2TextureFlipbook

GetHashCode()

Reference-identity hash (the C++ type has no hash to mirror).

public override int GetHashCode()

Returns

int

Operators

operator ==(M2TextureFlipbook?, M2TextureFlipbook?)

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

Parameters

l M2TextureFlipbook
r M2TextureFlipbook

Returns

bool

operator !=(M2TextureFlipbook?, M2TextureFlipbook?)

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

Parameters

l M2TextureFlipbook
r M2TextureFlipbook

Returns

bool