Struct BlockSprites
pub struct BlockSprites {
pub sides: [Vec<FaceSprite>; 6],
pub particle: Option<SpriteRef>,
pub cube: bool,
}Expand description
What a block draws on each side, in Direction::ALL’s order (down, up, north, south, west, east).
Fields§
§sides: [Vec<FaceSprite>; 6]The faces on each side, in the model’s order: the one drawn first first (a grass block’s side: its dirt and grass, then the grass overlay tinted over it). A side with none is empty. Faces that do not lie flat on a side (a flower’s crossed planes, a rotated element) are left out.
particle: Option<SpriteRef>The model’s particle sprite (what breaking it scatters, a flower’s whole picture), if it has one.
cube: boolThe model is a plain cube: one whole face on each side, at its plane.
Trait Implementations§
§impl Clone for BlockSprites
impl Clone for BlockSprites
§fn clone(&self) -> BlockSprites
fn clone(&self) -> BlockSprites
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 more§impl Debug for BlockSprites
impl Debug for BlockSprites
§impl PartialEq for BlockSprites
impl PartialEq for BlockSprites
impl StructuralPartialEq for BlockSprites
Auto Trait Implementations§
impl Freeze for BlockSprites
impl RefUnwindSafe for BlockSprites
impl Send for BlockSprites
impl Sync for BlockSprites
impl Unpin for BlockSprites
impl UnsafeUnpin for BlockSprites
impl UnwindSafe for BlockSprites
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