ParticleDesc

@ConfigSerializable
data class ParticleDesc(val type: ParticleType, val count: Int = 0, val size: DVec3 = DVec3(0.0), val speed: Double = 0.0)

Descriptor for a spawnable particle.

Parameters

type

the base type of particle.

count

the number of particles spawned.

size

the space in which particles are spawned, or direction of particle if count is 0.

speed

the speed that particles travel at, or extra miscellaneous data.

Constructors

Link copied to clipboard
constructor(type: ParticleType, count: Int = 0, size: DVec3 = DVec3(0.0), speed: Double = 0.0)

Properties

Link copied to clipboard
val count: Int = 0
Link copied to clipboard
val size: DVec3
Link copied to clipboard
val speed: Double = 0.0
Link copied to clipboard
@Required
val type: ParticleType