use super::*;
#[derive(Clone, Copy, Data, Debug, Default, PartialEq)]
pub struct Particle {
#[get(type(copy))]
pub(crate) active: bool,
#[get(type(copy))]
pub(crate) position: Point,
#[get(type(copy))]
pub(crate) velocity: Point,
#[get(type(copy))]
pub(crate) age: f32,
#[get(type(copy))]
pub(crate) lifetime: f32,
#[get(type(copy))]
pub(crate) start_size: f32,
#[get(type(copy))]
pub(crate) end_size: f32,
#[get(type(copy))]
pub(crate) start_color: Color,
#[get(type(copy))]
pub(crate) end_color: Color,
#[get(type(copy))]
pub(crate) drag: f32,
}
#[derive(Clone, Copy, Data, Debug, PartialEq)]
pub struct ParticleEmitterConfig {
#[get(type(copy))]
pub(crate) base_angle: f32,
#[get(type(copy))]
pub(crate) spread_rad: f32,
#[get(type(copy))]
pub(crate) min_speed: f32,
#[get(type(copy))]
pub(crate) max_speed: f32,
#[get(type(copy))]
pub(crate) min_life: f32,
#[get(type(copy))]
pub(crate) max_life: f32,
#[get(type(copy))]
pub(crate) start_size: f32,
#[get(type(copy))]
pub(crate) end_size: f32,
#[get(type(copy))]
pub(crate) start_color: Color,
#[get(type(copy))]
pub(crate) end_color: Color,
#[get(type(copy))]
pub(crate) drag: f32,
}
#[derive(Clone, Data, Debug)]
pub struct ParticleSystem {
pub(crate) pool: Vec<Particle>,
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) cursor: usize,
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) rng_state: u64,
#[get(type(copy))]
pub(crate) gravity: Point,
#[get(type(copy))]
pub(crate) active_count: usize,
}