#[non_exhaustive]pub struct LinkClass {Show 15 fields
pub index: u32,
pub name_hash: u32,
pub type_id: i32,
pub jump_height: f32,
pub jump_length: f32,
pub jump_dropdown_min: f32,
pub jump_dropdown_max: f32,
pub min_center_height: f32,
pub agent_height: f32,
pub max_step_height: f32,
pub agent_radius: f32,
pub flags: u16,
pub area: u8,
pub pad: u8,
pub color: i32,
}Expand description
One link class: an off-mesh jump or climb link type (spec 3.4).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.index: u32Becomes the off-mesh connection userId.
name_hash: u32Name hash (unused).
type_id: i32Type id, -1 if unset (unused).
jump_height: f32Jump height, metres.
jump_length: f32Jump length, metres.
jump_dropdown_min: f32Minimum jump drop, metres.
jump_dropdown_max: f32Maximum jump drop, metres.
min_center_height: f32Minimum centre height (its sign selects the obstacle-height test).
agent_height: f32Agent height, metres.
max_step_height: f32Maximum step height, metres.
agent_radius: f32Agent radius, metres.
flags: u16Poly flags assigned to the generated off-mesh polygons.
area: u8Area id assigned to them (must fit 6 bits).
pad: u8Padding byte.
color: i32Debug colour (unused).
Trait Implementations§
impl StructuralPartialEq for LinkClass
Auto Trait Implementations§
impl Freeze for LinkClass
impl RefUnwindSafe for LinkClass
impl Send for LinkClass
impl Sync for LinkClass
impl Unpin for LinkClass
impl UnsafeUnpin for LinkClass
impl UnwindSafe for LinkClass
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().