Struct NavArea

Source
pub struct NavArea {
Show 19 fields pub id: NavAreaId, pub flags: NavAreaFlags, pub quad: NavQuad, pub connections: Connections, pub hiding_spots_count: u8, pub hiding_spots: Vec<NavHidingSpot>, pub approach_areas_count: u8, pub approach_areas: Vec<ApproachArea>, pub encounter_paths_count: u32, pub encounter_paths: Vec<EncounterPath>, pub place: u16, pub ladder_connections: LadderConnections, pub earliest_occupy_first_team: f32, pub earliest_occupy_second_team: f32, pub light_intensity: LightIntensity, pub visible_areas_count: u32, pub visible_areas: Vec<VisibleArea>, pub inherit_visibility_from_area_id: u32, pub padding: u32,
}
Expand description

A navigation area from the nav file

Fields§

§id: NavAreaId§flags: NavAreaFlags§quad: NavQuad§connections: Connections§hiding_spots_count: u8§hiding_spots: Vec<NavHidingSpot>§approach_areas_count: u8§approach_areas: Vec<ApproachArea>§encounter_paths_count: u32§encounter_paths: Vec<EncounterPath>§place: u16§ladder_connections: LadderConnections§earliest_occupy_first_team: f32§earliest_occupy_second_team: f32§light_intensity: LightIntensity§visible_areas_count: u32§visible_areas: Vec<VisibleArea>§inherit_visibility_from_area_id: u32§padding: u32

Trait Implementations§

Source§

impl BinRead for NavArea

Source§

type Args<'__binrw_generated_args_lifetime> = (u32,)

The type used for the args parameter of read_args() and read_options(). Read more
Source§

fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>

Read Self from the reader using the given Endian and arguments. Read more
Source§

fn read_be<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments and assuming big-endian byte order. Read more
Source§

fn read_le<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments and assuming little-endian byte order. Read more
Source§

fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read T from the reader assuming native-endian byte order. Read more
Source§

fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read Self from the reader, assuming big-endian byte order, using the given arguments. Read more
Source§

fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read Self from the reader, assuming little-endian byte order, using the given arguments. Read more
Source§

fn read_ne_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read T from the reader, assuming native-endian byte order, using the given arguments. Read more
Source§

impl Debug for NavArea

Source§

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

Formats the value using the given formatter. Read more

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> 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, 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.