pub struct ModdEntry {
pub name_index_and_flags: u32,
pub position: [f32; 3],
pub orientation: [f32; 4],
pub scale: f32,
pub color: [u8; 4],
}Expand description
MODD - Doodad definitions chunk
Fields§
§name_index_and_flags: u32§position: [f32; 3]§orientation: [f32; 4]§scale: f32§color: [u8; 4]Implementations§
Source§impl ModdEntry
impl ModdEntry
Sourcepub fn name_index(&self) -> u32
pub fn name_index(&self) -> u32
Extract the name index (bits 0-23)
Sourcepub fn accepts_proj_tex(&self) -> bool
pub fn accepts_proj_tex(&self) -> bool
Check if accepts projected textures (bit 24)
Sourcepub fn uses_interior_lighting(&self) -> bool
pub fn uses_interior_lighting(&self) -> bool
Check if uses interior lighting (bit 25)
Trait Implementations§
Source§impl BinRead for ModdEntry
impl BinRead for ModdEntry
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>
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>
Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments. Read moreSource§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader using the given arguments. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl ReadEndian for ModdEntry
impl ReadEndian for ModdEntry
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Auto Trait Implementations§
impl Freeze for ModdEntry
impl RefUnwindSafe for ModdEntry
impl Send for ModdEntry
impl Sync for ModdEntry
impl Unpin for ModdEntry
impl UnwindSafe for ModdEntry
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