#[repr(C)]pub struct SGetApproximateLengthPathCommand {
pub start_posF3: *mut f32,
pub end_posF3: *mut f32,
pub pathType: c_int,
pub goalRadius: f32,
pub ret_approximatePathLength: f32,
}
Expand description
Returns the approximate path cost between two points.
- for pathType @see UnitDef_MoveData_getPathType()
- goalRadius defines a goal area within which any square could be accepted as path target. If a singular goal position is wanted, use 0.0f. default: 8.0f
Fields§
§start_posF3: *mut f32
The starting location of the requested path
end_posF3: *mut f32
The goal location of the requested path
pathType: c_int
For what type of unit should the path be calculated
goalRadius: f32
default: 8.0f
ret_approximatePathLength: f32
Trait Implementations§
Source§impl Clone for SGetApproximateLengthPathCommand
impl Clone for SGetApproximateLengthPathCommand
Source§fn clone(&self) -> SGetApproximateLengthPathCommand
fn clone(&self) -> SGetApproximateLengthPathCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for SGetApproximateLengthPathCommand
Auto Trait Implementations§
impl Freeze for SGetApproximateLengthPathCommand
impl RefUnwindSafe for SGetApproximateLengthPathCommand
impl !Send for SGetApproximateLengthPathCommand
impl !Sync for SGetApproximateLengthPathCommand
impl Unpin for SGetApproximateLengthPathCommand
impl UnwindSafe for SGetApproximateLengthPathCommand
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