Table of Contents

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
object
CpuParticleParameters
Implements

Constructors

CpuParticleParameters()

public CpuParticleParameters()

CpuParticleParameters(CpuParticleParameters)

protected CpuParticleParameters(CpuParticleParameters original)

Parameters

original CpuParticleParameters

Properties

Color

The color of the particle

[LuaHide]
public Color Color { get; set; }

Property Value

Color

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

XColor
See Also

DeltaColor

How much the particle gets darker per second

public float DeltaColor { get; set; }

Property Value

float

DeltaSize

How much the particle will grow per second

public float DeltaSize { get; set; }

Property Value

float

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

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

float

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

float

Size

The size of the particle

public float Size { get; set; }

Property Value

float

Methods

Equals(CpuParticleParameters?)

public virtual bool Equals(CpuParticleParameters? other)

Parameters

other CpuParticleParameters

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(CpuParticleParameters?, CpuParticleParameters?)

public static bool operator ==(CpuParticleParameters? left, CpuParticleParameters? right)

Parameters

left CpuParticleParameters
right CpuParticleParameters

Returns

bool

operator !=(CpuParticleParameters?, CpuParticleParameters?)

public static bool operator !=(CpuParticleParameters? left, CpuParticleParameters? right)

Parameters

left CpuParticleParameters
right CpuParticleParameters

Returns

bool