Table of Contents

Class WMOBatch

Namespace
WoWLib.Formats.WMO.Group.Chunks
Assembly
WoWLib.dll

A MOBA render batch, abstract over the client version. Construct a concrete version with WMOBatch.for_version(expansion).

public class WMOBatch : IDisposable
Inheritance
WMOBatch
Implements
Derived
Inherited Members

Constructors

WMOBatch()

public WMOBatch()

WMOBatch(WMOBatch)

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

public WMOBatch(WMOBatch other)

Parameters

other WMOBatch

Properties

Count

Number of MOVI indices.

public ushort Count { get; set; }

Property Value

ushort

Flags

Batch flags.

public byte Flags { get; set; }

Property Value

byte

MaterialId

Index into MOMT.

public byte MaterialId { get; set; }

Property Value

byte

MaxIndex

Last vertex used, inclusive.

public ushort MaxIndex { get; set; }

Property Value

ushort

MinIndex

First vertex used in MOVT.

public ushort MinIndex { get; set; }

Property Value

ushort

StartIndex

First face index in MOVI.

public uint StartIndex { get; set; }

Property Value

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

ForVersion(ClientVersion)

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

Parameters

version ClientVersion

Returns

WMOBatch

ForVersion(Expansion)

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

public static WMOBatch ForVersion(Expansion era)

Parameters

era Expansion

Returns

WMOBatch