Skip to main content

PathFinderMapSettings

Struct PathFinderMapSettings 

Source
pub struct PathFinderMapSettings {
Show 33 fields pub cache_accept_path_end_distance_ratio: f64, pub cache_accept_path_start_distance_ratio: f64, pub cache_max_connect_to_cache_steps_multiplier: u32, pub cache_path_end_distance_rating_multiplier: f64, pub cache_path_start_distance_rating_multiplier: f64, pub direct_distance_to_consider_short_request: u32, pub enemy_with_different_destination_collision_penalty: f64, pub extended_collision_penalty: f64, pub fwd2bwd_ratio: u32, pub general_entity_collision_penalty: f64, pub general_entity_subsequent_collision_penalty: f64, pub goal_pressure_ratio: f64, pub ignore_moving_enemy_collision_distance: f64, pub long_cache_min_cacheable_distance: f64, pub long_cache_size: u32, pub max_clients_to_accept_any_new_request: u32, pub max_clients_to_accept_short_new_request: u32, pub max_steps_worked_per_tick: f64, pub max_work_done_per_tick: u32, pub min_steps_to_check_path_find_termination: u32, pub negative_cache_accept_path_end_distance_ratio: f64, pub negative_cache_accept_path_start_distance_ratio: f64, pub negative_path_cache_delay_interval: u32, pub overload_levels: &'static [u32], pub overload_multipliers: &'static [f64], pub short_cache_min_algo_steps_to_cache: u32, pub short_cache_min_cacheable_distance: f64, pub short_cache_size: u32, pub short_request_max_steps: u32, pub short_request_ratio: f64, pub stale_enemy_with_same_destination_collision_penalty: f64, pub start_to_goal_cost_multiplier_to_terminate_path_find: f64, pub use_path_cache: bool,
}

Fields§

§cache_accept_path_end_distance_ratio: f64§cache_accept_path_start_distance_ratio: f64§cache_max_connect_to_cache_steps_multiplier: u32§cache_path_end_distance_rating_multiplier: f64§cache_path_start_distance_rating_multiplier: f64§direct_distance_to_consider_short_request: u32§enemy_with_different_destination_collision_penalty: f64§extended_collision_penalty: f64§fwd2bwd_ratio: u32§general_entity_collision_penalty: f64§general_entity_subsequent_collision_penalty: f64§goal_pressure_ratio: f64§ignore_moving_enemy_collision_distance: f64§long_cache_min_cacheable_distance: f64§long_cache_size: u32§max_clients_to_accept_any_new_request: u32§max_clients_to_accept_short_new_request: u32§max_steps_worked_per_tick: f64§max_work_done_per_tick: u32§min_steps_to_check_path_find_termination: u32§negative_cache_accept_path_end_distance_ratio: f64§negative_cache_accept_path_start_distance_ratio: f64§negative_path_cache_delay_interval: u32§overload_levels: &'static [u32]§overload_multipliers: &'static [f64]§short_cache_min_algo_steps_to_cache: u32§short_cache_min_cacheable_distance: f64§short_cache_size: u32§short_request_max_steps: u32§short_request_ratio: f64§stale_enemy_with_same_destination_collision_penalty: f64§start_to_goal_cost_multiplier_to_terminate_path_find: f64§use_path_cache: bool

Trait Implementations§

Source§

impl Clone for PathFinderMapSettings

Source§

fn clone(&self) -> PathFinderMapSettings

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for PathFinderMapSettings

Source§

impl Debug for PathFinderMapSettings

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PathFinderMapSettings

Source§

fn default() -> PathFinderMapSettings

Returns the “default value” for a type. Read more
Source§

impl PartialEq for PathFinderMapSettings

Source§

fn eq(&self, other: &PathFinderMapSettings) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PathFinderMapSettings

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.