pub struct BrickBase<S = String> {
pub ui_name: S,
pub position: (f32, f32, f32),
pub angle: u8,
pub is_baseplate: bool,
pub color_index: u8,
pub print: S,
pub color_fx: u8,
pub shape_fx: u8,
pub raycasting: bool,
pub collision: bool,
pub rendering: bool,
}Expand description
Basic brick data excluding extended attributes such as owner, events, etc.
Fields§
§ui_name: SThe uiName of the fxDTSBrickData datablock used by the brick.
position: (f32, f32, f32)The position of the brick.
angle: u8The rotation of the brick.
Valid values range from 0 through 3.
is_baseplate: boolWhether the fxDTSBrickData datablock is a baseplate.
color_index: u8Index into the colorset.
Valid values range from 0 through 63.
print: SName of the print to use for print bricks. “” represents none.
color_fx: u8Color effect (such as glow, rainbow).
shape_fx: u8Shape effect (such as undulo, water).
raycasting: boolWhether the brick can be raycasted against.
collision: boolWhether objects collide with the brick.
rendering: boolWhether the brick is visible.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for BrickBase<S>where
S: Freeze,
impl<S> RefUnwindSafe for BrickBase<S>where
S: RefUnwindSafe,
impl<S> Send for BrickBase<S>where
S: Send,
impl<S> Sync for BrickBase<S>where
S: Sync,
impl<S> Unpin for BrickBase<S>where
S: Unpin,
impl<S> UnwindSafe for BrickBase<S>where
S: UnwindSafe,
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