Class M2ExtendedParticle
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
zSourcefloatcolorMultfloatalphaMultfloatalphaCutoffM2PartTrackFixed16
M2ExtendedParticle(M2ExtendedParticle)
Copy-construct: a deep copy of other (the C++ copy constructor).
public M2ExtendedParticle(M2ExtendedParticle other)
Parameters
otherM2ExtendedParticle
Properties
AlphaCutoff
Alpha-test threshold sampled by the particle's lifetime.
public M2PartTrackFixed16 AlphaCutoff { get; set; }
Property Value
AlphaMult
Multiplied into the particle's opacity.
public float AlphaMult { get; set; }
Property Value
ColorMult
Multiplied into the particle's diffuse color.
public float ColorMult { get; set; }
Property Value
ZSource
If > 0, initial velocity points from (0, 0, z_source) to the spawn point.
public float ZSource { 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
GetHashCode()
Reference-identity hash (the C++ type has no hash to mirror).
public override int GetHashCode()
Returns
Operators
operator ==(M2ExtendedParticle?, M2ExtendedParticle?)
public static bool operator ==(M2ExtendedParticle? l, M2ExtendedParticle? r)
Parameters
Returns
operator !=(M2ExtendedParticle?, M2ExtendedParticle?)
public static bool operator !=(M2ExtendedParticle? l, M2ExtendedParticle? r)