pub struct Firework {
pub init_time: SystemTime,
pub spawn_after: Duration,
pub time_elapsed: Duration,
pub center: Vec2,
pub state: FireworkState,
pub config: FireworkConfig,
pub form: ExplosionForm,
pub particles: Vec<ParticleConfig>,
pub current_particles: Vec<Particle>,
}
Expand description
Struct representing a single firework
Fields§
§init_time: SystemTime
The SystemTime
when the object is initialized/defined
spawn_after: Duration
Firework spawns after spawn_after
from init_time
time_elapsed: Duration
§center: Vec2
§state: FireworkState
§config: FireworkConfig
§form: ExplosionForm
§particles: Vec<ParticleConfig>
§current_particles: Vec<Particle>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Firework
impl !RefUnwindSafe for Firework
impl !Send for Firework
impl !Sync for Firework
impl Unpin for Firework
impl !UnwindSafe for Firework
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more