[][src]Struct bl_save::BrickBase

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,
}

Basic brick data excluding extended attributes such as owner, events, etc.

Fields

ui_name: S

The uiName of the fxDTSBrickData datablock used by the brick.

position: (f32, f32, f32)

The position of the brick.

angle: u8

The rotation of the brick. Valid values range from 0 through 3.

is_baseplate: bool

Whether the fxDTSBrickData datablock is a baseplate.

color_index: u8

Index into the colorset. Valid values range from 0 through 63.

print: S

Name of the print to use for print bricks. "" represents none.

color_fx: u8

Color effect (such as glow, rainbow).

shape_fx: u8

Shape effect (such as undulo, water).

raycasting: bool

Whether the brick can be raycasted against.

collision: bool

Whether objects collide with the brick.

rendering: bool

Whether the brick is visible.

Trait Implementations

impl<S: Clone> Clone for BrickBase<S>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<S: Debug> Debug for BrickBase<S>[src]

Auto Trait Implementations

impl<S> Send for BrickBase<S> where
    S: Send

impl<S> Sync for BrickBase<S> where
    S: Sync

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]