#[repr(C)]pub struct ObjectMaterialData {
pub u0: ObjectMaterialData0,
pub u1: ObjectMaterialData1,
pub background_colour: Colour,
pub text_or_txd: HybridString<32>,
pub font_or_texture: HybridString<32>,
pub type: u8,
pub used: bool,
}Expand description
ObjectMaterialData in Server/Components/Objects/objects.hpp.
The C++ side copies it with a constructor, so it travels by
reference only: build one here and pass &, or read the server’s.
Fields§
§u0: ObjectMaterialData0(anonymous union).
u1: ObjectMaterialData1(anonymous union).
background_colour: ColourbackgroundColour.
text_or_txd: HybridString<32>textOrTXD.
font_or_texture: HybridString<32>fontOrTexture.
type: u8type.
used: boolused.
Auto Trait Implementations§
impl !Send for ObjectMaterialData
impl !Sync for ObjectMaterialData
impl Freeze for ObjectMaterialData
impl RefUnwindSafe for ObjectMaterialData
impl Unpin for ObjectMaterialData
impl UnsafeUnpin for ObjectMaterialData
impl UnwindSafe for ObjectMaterialData
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