pub struct MaterialAddData { /* private fields */ }Expand description
MADD — Material additional data (v0–v3, 140–160 bytes)
Buffer-style material extension storing key–value pairs, hashes, and animation parameters. Added in MODL v30.
Implementations§
Source§impl MaterialAddData
impl MaterialAddData
pub fn set_key_name(&mut self, value: &str)
Sourcepub fn key_hash(&self) -> &[u32]
pub fn key_hash(&self) -> &[u32]
Key hash values (U32_)
Zero-copy view of the underlying std::vector.
Sourcepub fn key_hash_mut(&mut self) -> &mut [u32]
pub fn key_hash_mut(&mut self) -> &mut [u32]
Zero-copy mutable view. Resize first — the borrow forbids it after.
pub fn set_key_hash(&mut self, values: &[u32])
pub fn resize_key_hash(&mut self, count: usize)
Sourcepub fn extra_hash(&self) -> &[u32]
pub fn extra_hash(&self) -> &[u32]
Extra hash values (U32_, v2+)
Zero-copy view of the underlying std::vector.
Sourcepub fn extra_hash_mut(&mut self) -> &mut [u32]
pub fn extra_hash_mut(&mut self) -> &mut [u32]
Zero-copy mutable view. Resize first — the borrow forbids it after.
pub fn set_extra_hash(&mut self, values: &[u32])
pub fn resize_extra_hash(&mut self, count: usize)
Sourcepub fn value_path(&self) -> String
pub fn value_path(&self) -> String
Value file path (Ref<CHAR>)
pub fn set_value_path(&mut self, value: &str)
pub fn set_frequency(&mut self, value: f32)
pub fn set_intensity(&mut self, value: f32)
pub fn set_hold_time(&mut self, value: f32)
Sourcepub fn random_hash(&self) -> u32
pub fn random_hash(&self) -> u32
Random seed hash
pub fn set_random_hash(&mut self, value: u32)
Sourcepub fn animation_type(&self) -> u32
pub fn animation_type(&self) -> u32
Animation type code
pub fn set_animation_type(&mut self, value: u32)
pub fn set_padding_0(&mut self, value: u32)
Sourcepub fn loop_count(&self) -> i32
pub fn loop_count(&self) -> i32
Loop count (-1 = infinite)
pub fn set_loop_count(&mut self, value: i32)
pub fn set_flags(&mut self, value: u32)
pub fn set_sub_type(&mut self, value: u32)
pub fn set_config_a(&mut self, value: u32)
pub fn set_config_b(&mut self, value: u32)
Sourcepub fn extra_id_0(&self) -> u32
pub fn extra_id_0(&self) -> u32
Extra identifier 0 (v3+)
pub fn set_extra_id_0(&mut self, value: u32)
Sourcepub fn extra_id_1(&self) -> u32
pub fn extra_id_1(&self) -> u32
Extra identifier 1 (v3+)
pub fn set_extra_id_1(&mut self, value: u32)
Trait Implementations§
Source§impl Debug for MaterialAddData
impl Debug for MaterialAddData
Source§impl Default for MaterialAddData
impl Default for MaterialAddData
Source§impl Drop for MaterialAddData
impl Drop for MaterialAddData
impl Send for MaterialAddData
Auto Trait Implementations§
impl !Sync for MaterialAddData
impl Freeze for MaterialAddData
impl RefUnwindSafe for MaterialAddData
impl Unpin for MaterialAddData
impl UnsafeUnpin for MaterialAddData
impl UnwindSafe for MaterialAddData
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