pub struct WorldSector { /* private fields */ }Expand description
One decoded world sector record.
Implementations§
Source§impl WorldSector
impl WorldSector
Sourcepub fn has_geometry(&self) -> bool
pub fn has_geometry(&self) -> bool
True if this sector has any floor, ceiling, or wall geometry.
Sourcepub fn has_ceiling(&self) -> bool
pub fn has_ceiling(&self) -> bool
True if this sector has a ceiling face.
Sourcepub fn is_floor_walkable(&self) -> bool
pub fn is_floor_walkable(&self) -> bool
True if the floor face is walkable.
Sourcepub fn floor_walkable(&self) -> bool
👎Deprecated: renamed to is_floor_walkable
pub fn floor_walkable(&self) -> bool
renamed to is_floor_walkable
Renamed to Self::is_floor_walkable.
Sourcepub fn floor_split(&self) -> u8
pub fn floor_split(&self) -> u8
Floor diagonal split id.
Sourcepub fn floor_material(&self) -> Option<u16>
pub fn floor_material(&self) -> Option<u16>
Floor material slot.
Sourcepub fn floor_heights(&self) -> [i32; 4]
pub fn floor_heights(&self) -> [i32; 4]
Floor corner heights [NW, NE, SE, SW].
Sourcepub fn floor_uvs(&self) -> WorldQuadUvs
pub fn floor_uvs(&self) -> WorldQuadUvs
Floor UVs [NW, NE, SE, SW].
Sourcepub fn has_floor_triangle(&self, index: usize) -> bool
pub fn has_floor_triangle(&self, index: usize) -> bool
true if a floor split triangle is present.
Sourcepub fn floor_triangle_present(&self, index: usize) -> bool
👎Deprecated: renamed to has_floor_triangle
pub fn floor_triangle_present(&self, index: usize) -> bool
renamed to has_floor_triangle
Renamed to Self::has_floor_triangle.
Sourcepub fn floor_triangle_material(&self, index: usize) -> Option<u16>
pub fn floor_triangle_material(&self, index: usize) -> Option<u16>
Floor split-triangle material slot.
Sourcepub fn floor_triangle_uvs(&self, index: usize) -> WorldQuadUvs
pub fn floor_triangle_uvs(&self, index: usize) -> WorldQuadUvs
Floor split-triangle UVs in face-corner order.
Sourcepub fn floor_triangle_heights(&self, index: usize) -> [i32; 3]
pub fn floor_triangle_heights(&self, index: usize) -> [i32; 3]
Floor split-triangle heights in that triangle’s corner order.
Sourcepub fn is_floor_triangle_walkable(&self, index: usize) -> bool
pub fn is_floor_triangle_walkable(&self, index: usize) -> bool
true if a floor split triangle is walkable.
Sourcepub fn floor_triangle_walkable(&self, index: usize) -> bool
👎Deprecated: renamed to is_floor_triangle_walkable
pub fn floor_triangle_walkable(&self, index: usize) -> bool
renamed to is_floor_triangle_walkable
Renamed to Self::is_floor_triangle_walkable.
Sourcepub fn ceiling_split(&self) -> u8
pub fn ceiling_split(&self) -> u8
Ceiling diagonal split id.
Sourcepub fn ceiling_material(&self) -> Option<u16>
pub fn ceiling_material(&self) -> Option<u16>
Ceiling material slot.
Sourcepub fn ceiling_heights(&self) -> [i32; 4]
pub fn ceiling_heights(&self) -> [i32; 4]
Ceiling corner heights [NW, NE, SE, SW].
Sourcepub fn ceiling_uvs(&self) -> WorldQuadUvs
pub fn ceiling_uvs(&self) -> WorldQuadUvs
Ceiling UVs [NW, NE, SE, SW].
Sourcepub fn has_ceiling_triangle(&self, index: usize) -> bool
pub fn has_ceiling_triangle(&self, index: usize) -> bool
true if a ceiling split triangle is present.
Sourcepub fn ceiling_triangle_present(&self, index: usize) -> bool
👎Deprecated: renamed to has_ceiling_triangle
pub fn ceiling_triangle_present(&self, index: usize) -> bool
renamed to has_ceiling_triangle
Renamed to Self::has_ceiling_triangle.
Sourcepub fn ceiling_triangle_material(&self, index: usize) -> Option<u16>
pub fn ceiling_triangle_material(&self, index: usize) -> Option<u16>
Ceiling split-triangle material slot.
Sourcepub fn ceiling_triangle_uvs(&self, index: usize) -> WorldQuadUvs
pub fn ceiling_triangle_uvs(&self, index: usize) -> WorldQuadUvs
Ceiling split-triangle UVs in face-corner order.
Sourcepub fn ceiling_triangle_heights(&self, index: usize) -> [i32; 3]
pub fn ceiling_triangle_heights(&self, index: usize) -> [i32; 3]
Ceiling split-triangle heights in that triangle’s corner order.
Sourcepub fn is_ceiling_triangle_walkable(&self, index: usize) -> bool
pub fn is_ceiling_triangle_walkable(&self, index: usize) -> bool
true if a ceiling split triangle is walkable.
Sourcepub fn first_wall(&self) -> u16
pub fn first_wall(&self) -> u16
First global wall index for this sector.
Sourcepub fn wall_count(&self) -> u16
pub fn wall_count(&self) -> u16
Number of walls belonging to this sector.
Trait Implementations§
Source§impl Clone for WorldSector
impl Clone for WorldSector
Source§fn clone(&self) -> WorldSector
fn clone(&self) -> WorldSector
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WorldSector
impl Debug for WorldSector
Source§impl PartialEq for WorldSector
impl PartialEq for WorldSector
impl Copy for WorldSector
impl Eq for WorldSector
impl StructuralPartialEq for WorldSector
Auto Trait Implementations§
impl Freeze for WorldSector
impl RefUnwindSafe for WorldSector
impl Send for WorldSector
impl Sync for WorldSector
impl Unpin for WorldSector
impl UnsafeUnpin for WorldSector
impl UnwindSafe for WorldSector
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)