Class WMOBatch
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
otherWMOBatch
Properties
Count
Number of MOVI indices.
public ushort Count { get; set; }
Property Value
Flags
Batch flags.
public byte Flags { get; set; }
Property Value
MaterialId
Index into MOMT.
public byte MaterialId { get; set; }
Property Value
MaxIndex
Last vertex used, inclusive.
public ushort MaxIndex { get; set; }
Property Value
MinIndex
First vertex used in MOVT.
public ushort MinIndex { get; set; }
Property Value
StartIndex
First face index in MOVI.
public uint StartIndex { get; set; }
Property Value
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
versionClientVersion
Returns
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
eraExpansion