#[non_exhaustive]pub struct MeshHeader {Show 22 fields
pub magic: i32,
pub version: i32,
pub x: i32,
pub y: i32,
pub layer: i32,
pub user_id: u32,
pub poly_count: i32,
pub vert_count: i32,
pub max_link_count: i32,
pub detail_mesh_count: i32,
pub detail_vert_count: i32,
pub detail_tri_count: i32,
pub bv_node_count: i32,
pub off_mesh_con_count: i32,
pub off_mesh_base: i32,
pub walkable_height: f32,
pub walkable_radius: f32,
pub walkable_climb: f32,
pub bmin: [f32; 3],
pub bmax: [f32; 3],
pub bv_quant_factor: f32,
pub extra_data_size: i32,
}Expand description
The 104-byte dtMeshHeader of a tile (spec 9.3).
When a TileData is serialised, the counts (poly_count … off_mesh_con_count) and
extra_data_size are recomputed from the section lengths; the other fields are written as stored.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.magic: i32Tile magic, NAVMESH_MAGIC.
version: i32Tile version, NAVMESH_VERSION.
x: i32Grid x.
y: i32Grid row along world Z.
layer: i32Layer (0).
user_id: u32User id (0).
poly_count: i32Polygons, including off-mesh polygons.
vert_count: i32Vertices, including two per off-mesh connection.
max_link_count: i32Allocated links.
detail_mesh_count: i32Detail sub-meshes (0 for DayZ).
detail_vert_count: i32Detail vertices (0 for DayZ).
detail_tri_count: i32Detail triangles (0 for DayZ).
bv_node_count: i32Bounding volume nodes.
off_mesh_con_count: i32Off-mesh connections.
off_mesh_base: i32Index of the first off-mesh polygon (the ground polygon count).
walkable_height: f32Agent height, metres.
walkable_radius: f32Agent radius.
walkable_climb: f32Maximum climb height.
bmin: [f32; 3]Minimum corner of the tile’s bounds.
bmax: [f32; 3]Maximum corner of the tile’s bounds.
bv_quant_factor: f32Bounding volume quantisation factor (1 / cell size).
extra_data_size: i32Size in bytes of the trailing extra section (0: none).
Trait Implementations§
Source§impl Clone for MeshHeader
impl Clone for MeshHeader
Source§fn clone(&self) -> MeshHeader
fn clone(&self) -> MeshHeader
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MeshHeader
impl Debug for MeshHeader
Source§impl Default for MeshHeader
impl Default for MeshHeader
Source§fn default() -> MeshHeader
fn default() -> MeshHeader
Source§impl PartialEq for MeshHeader
impl PartialEq for MeshHeader
impl StructuralPartialEq for MeshHeader
Auto Trait Implementations§
impl Freeze for MeshHeader
impl RefUnwindSafe for MeshHeader
impl Send for MeshHeader
impl Sync for MeshHeader
impl Unpin for MeshHeader
impl UnsafeUnpin for MeshHeader
impl UnwindSafe for MeshHeader
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
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> ⓘ
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> ⓘ
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>
ReadEndian::read_from_little_endian().