Table of Contents

Class M2ExtendedParticleSimple

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

An EXPT record: z-source, color and alpha multipliers for one particle emitter.

public class M2ExtendedParticleSimple : IDisposable
Inheritance
M2ExtendedParticleSimple
Implements
Inherited Members

Constructors

M2ExtendedParticleSimple()

public M2ExtendedParticleSimple()

M2ExtendedParticleSimple(float, float, float)

public M2ExtendedParticleSimple(float zSource, float colorMult, float alphaMult)

Parameters

zSource float
colorMult float
alphaMult float

M2ExtendedParticleSimple(M2ExtendedParticleSimple)

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

public M2ExtendedParticleSimple(M2ExtendedParticleSimple other)

Parameters

other M2ExtendedParticleSimple

Properties

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 ==(M2ExtendedParticleSimple?, M2ExtendedParticleSimple?)

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

Parameters

l M2ExtendedParticleSimple
r M2ExtendedParticleSimple

Returns

bool

operator !=(M2ExtendedParticleSimple?, M2ExtendedParticleSimple?)

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

Parameters

l M2ExtendedParticleSimple
r M2ExtendedParticleSimple

Returns

bool