pub struct ModelDescription {
pub variants: Vec<ModelVariant>,
pub variant: i32,
pub mesh: i32,
pub random_variant: bool,
}Expand description
A ModelDescription: the meshes and materials an entity is drawn with.
Original: FUN_14012a290; the model component’s set-up FUN_140129f90 reads it.
Fields§
§variants: Vec<ModelVariant>The variants, 0x18 bytes each.
variant: i32Variant used unless random_variant.
mesh: i32Mesh index within the variant (negative = no mesh).
random_variant: boolPick the variant with Rand(variant count).
Trait Implementations§
Source§impl Clone for ModelDescription
impl Clone for ModelDescription
Source§fn clone(&self) -> ModelDescription
fn clone(&self) -> ModelDescription
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModelDescription
impl RefUnwindSafe for ModelDescription
impl Send for ModelDescription
impl Sync for ModelDescription
impl Unpin for ModelDescription
impl UnsafeUnpin for ModelDescription
impl UnwindSafe for ModelDescription
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