Class CpuParticleParameters
- Namespace
- OmegaEngine.Graphics.Renderables
- Assembly
- OmegaEngine.dll
A set of information about a particle in a particle system
public record CpuParticleParameters : IEquatable<CpuParticleParameters>
- Inheritance
-
objectCpuParticleParameters
- Implements
Constructors
CpuParticleParameters()
public CpuParticleParameters()
CpuParticleParameters(CpuParticleParameters)
protected CpuParticleParameters(CpuParticleParameters original)
Parameters
originalCpuParticleParameters
Properties
Color
The color of the particle
[LuaHide]
public Color Color { get; set; }
Property Value
Remarks
Is not serialized/stored, Color4 is used for that.
Color4
Used for XML serialization.
[LuaHide]
[Browsable(false)]
public XColor Color4 { get; set; }
Property Value
- See Also
DeltaColor
How much the particle gets darker per second
public float DeltaColor { get; set; }
Property Value
DeltaSize
How much the particle will grow per second
public float DeltaSize { get; set; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Friction
How much the velocity will be reduced in one second as a value between 0 and 1
public float Friction { get; init; }
Property Value
LifeTime
How many seconds this particle will exist. Set to 0 never create. Set to OmegaEngine.Graphics.Renderables.CpuParticleParameters.InfiniteFlag for infinite.
public float LifeTime { get; init; }
Property Value
Size
The size of the particle
public float Size { get; set; }
Property Value
Methods
Equals(CpuParticleParameters?)
public virtual bool Equals(CpuParticleParameters? other)
Parameters
otherCpuParticleParameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(CpuParticleParameters?, CpuParticleParameters?)
public static bool operator ==(CpuParticleParameters? left, CpuParticleParameters? right)
Parameters
leftCpuParticleParametersrightCpuParticleParameters
Returns
operator !=(CpuParticleParameters?, CpuParticleParameters?)
public static bool operator !=(CpuParticleParameters? left, CpuParticleParameters? right)
Parameters
leftCpuParticleParametersrightCpuParticleParameters