pub struct Tornado {
pub target: [f32; 3],
pub path: Vec<[f32; 3]>,
pub index: i32,
pub timer: i64,
pub position: [f32; 3],
pub emitting: bool,
pub slot: Option<(f32, f32)>,
}Expand description
The component’s state.
Original: FUN_1400594e0.
Fields§
§target: [f32; 3]The point it heads for.
path: Vec<[f32; 3]>The line it follows.
index: i32The index of the point it heads for.
timer: i64Until the next wrecking pass.
position: [f32; 3]Where it is.
emitting: boolWhether its particle slot is on.
Original: FUN_140054080(0) fades it out.
slot: Option<(f32, f32)>The particle slot’s alpha (system) and its rate per second: 1 / fade from the start, −1 / fade once it stops; None once the slot is gone.
Original: FUN_140053fc0.
Implementations§
Source§impl Tornado
impl Tornado
Sourcepub fn new(
t: &TornadoTemplate,
size: usize,
terrain: &HeightGrid<'_>,
floors: &Floors,
rng: &mut Random,
) -> Tornado
pub fn new( t: &TornadoTemplate, size: usize, terrain: &HeightGrid<'_>, floors: &Floors, rng: &mut Random, ) -> Tornado
A new tornado on a map of size cells: its line across the map, and its event.
Original: FUN_140058f00.
Trait Implementations§
impl StructuralPartialEq for Tornado
Auto Trait Implementations§
impl Freeze for Tornado
impl RefUnwindSafe for Tornado
impl Send for Tornado
impl Sync for Tornado
impl Unpin for Tornado
impl UnsafeUnpin for Tornado
impl UnwindSafe for Tornado
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