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 {
#[get(type(copy))]
#[get_mut(skip)]
#[set(skip)]
pub(crate) capacity: usize,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) pos_x: Vec<f32>,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) pos_y: Vec<f32>,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) vel_x: Vec<f32>,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) vel_y: Vec<f32>,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) age: Vec<f32>,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) lifetime: Vec<f32>,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) drag: Vec<f32>,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) start_size: Vec<f32>,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) end_size: Vec<f32>,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) start_color: Vec<Color>,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) end_color: Vec<Color>,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) min_remaining_life: f32,
#[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,
}