Table of Contents

Class M2ExtendedParticle

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

An EXP2 record: the EXPT parameters plus the per-lifetime alpha-cutoff ramp.

public class M2ExtendedParticle : IDisposable
Inheritance
M2ExtendedParticle
Implements
Inherited Members

Constructors

M2ExtendedParticle()

public M2ExtendedParticle()

M2ExtendedParticle(float, float, float, M2PartTrackFixed16)

public M2ExtendedParticle(float zSource, float colorMult, float alphaMult, M2PartTrackFixed16 alphaCutoff)

Parameters

zSource float
colorMult float
alphaMult float
alphaCutoff M2PartTrackFixed16

M2ExtendedParticle(M2ExtendedParticle)

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

public M2ExtendedParticle(M2ExtendedParticle other)

Parameters

other M2ExtendedParticle

Properties

AlphaCutoff

Alpha-test threshold sampled by the particle's lifetime.

public M2PartTrackFixed16 AlphaCutoff { get; set; }

Property Value

M2PartTrackFixed16

AlphaMult

Multiplied into the particle's opacity.

public float AlphaMult { get; set; }

Property Value

float

ColorMult

Multiplied into the particle's diffuse color.

public float ColorMult { get; set; }

Property Value

float

ZSource

If > 0, initial velocity points from (0, 0, z_source) to the spawn point.

public float ZSource { get; set; }

Property Value

float

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.

GetHashCode()

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

public override int GetHashCode()

Returns

int

Operators

operator ==(M2ExtendedParticle?, M2ExtendedParticle?)

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

Parameters

l M2ExtendedParticle
r M2ExtendedParticle

Returns

bool

operator !=(M2ExtendedParticle?, M2ExtendedParticle?)

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

Parameters

l M2ExtendedParticle
r M2ExtendedParticle

Returns

bool