Class M2TextureWeight
One texture weight (transparency) track. Abstract over the client version; construct a concrete version with M2TextureWeight.ForVersion / for_version.
public class M2TextureWeight : IDisposable
- Inheritance
-
M2TextureWeight
- Implements
- Derived
- Inherited Members
Constructors
M2TextureWeight()
public M2TextureWeight()
M2TextureWeight(M2TextureWeight)
Copy-construct: a deep copy of other (the C++ copy constructor).
public M2TextureWeight(M2TextureWeight other)
Parameters
otherM2TextureWeight
Properties
Weight
0 transparent .. 0x7FFF opaque; multiplies the color block's alpha.
public M2TrackFixed16 Weight { 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()
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
ForVersion(ClientVersion)
A fresh M2TextureWeight 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 M2TextureWeight ForVersion(ClientVersion version)
Parameters
versionClientVersion
Returns
ForVersion(Expansion)
A fresh M2TextureWeight for the given era, as the family base — the dynamic twin of the typed Era factories.
public static M2TextureWeight ForVersion(Expansion era)
Parameters
eraExpansion
Returns
GetHashCode()
Reference-identity hash (the C++ type has no hash to mirror).
public override int GetHashCode()
Returns
Operators
operator ==(M2TextureWeight?, M2TextureWeight?)
public static bool operator ==(M2TextureWeight? l, M2TextureWeight? r)
Parameters
Returns
operator !=(M2TextureWeight?, M2TextureWeight?)
public static bool operator !=(M2TextureWeight? l, M2TextureWeight? r)