pub struct MoveTo {
pub target: [f32; 3],
pub flags: u32,
pub walk: usize,
pub stand: usize,
pub mode: u32,
pub speed: f32,
pub following: bool,
/* private fields */
}Expand description
MoveTo.
Original: FUN_1400ce640.
Fields§
§target: [f32; 3]Destination.
flags: u32Allowed cell types.
walk: usizeWalk and stand clips.
stand: usizeThe clip played while standing.
mode: u32Pathfinder cost table.
speed: f32Speed factor (random 0.9–1.1 when constructed with a negative value).
following: boolWalking behind another character.
Original: FUN_1400cde40.
Implementations§
Source§impl MoveTo
impl MoveTo
Sourcepub fn new(
target: [f32; 3],
walk: usize,
stand: usize,
flags: u32,
mode: u32,
speed: f32,
rng: &mut Random,
) -> MoveTo
pub fn new( target: [f32; 3], walk: usize, stand: usize, flags: u32, mode: u32, speed: f32, rng: &mut Random, ) -> MoveTo
A MoveTo action.
Original: FUN_1400ce640.
Sourcepub fn restored(
target: [f32; 3],
walk: usize,
stand: usize,
flags: u32,
mode: u32,
speed: f32,
following: bool,
index: i32,
path: &[i32],
) -> MoveTo
pub fn restored( target: [f32; 3], walk: usize, stand: usize, flags: u32, mode: u32, speed: f32, following: bool, index: i32, path: &[i32], ) -> MoveTo
Plan from from to the target. A MoveTo from a save keeps its way (its cells and the next
one) as it was.
A path request in flight is not saved; one with no way restarts.
Original: FUN_1400ce390, FUN_1400ce0e0.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MoveTo
impl RefUnwindSafe for MoveTo
impl Send for MoveTo
impl Sync for MoveTo
impl Unpin for MoveTo
impl UnsafeUnpin for MoveTo
impl UnwindSafe for MoveTo
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