pub struct TerrainNavTable { /* private fields */ }Expand description
Lookup table for path costs — populated from the terrain kind catalog (no hardcoded speeds).
Implementations§
pub fn set(&mut self, kind: TerrainKindView, params: TerrainKindNavParams)
pub fn get(&self, kind: TerrainKindView) -> TerrainKindNavParams
pub fn iter( &self, ) -> impl Iterator<Item = (TerrainKindView, TerrainKindNavParams)> + '_
Sourcepub fn unit_test_defaults() -> Self
pub fn unit_test_defaults() -> Self
Test / fixture helper: former baked-in speeds so unit tests stay self-contained.
Trait Implementations§
Source§fn clone(&self) -> TerrainNavTable
fn clone(&self) -> TerrainNavTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§fn default() -> TerrainNavTable
fn default() -> TerrainNavTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
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