pub enum SlabDef {
Void,
Floor,
Boost,
}
Expand description
Different defs of slabs (those rectangles the ball can roll on). A def is what defines a slab, it will be translated into a kind at runtime. Typically some defs can be “a random slab”, or even “a slab that varies with time”, etc.
Variants§
Void
Nothing here, fall into the void.
Floor
Default slab def, a basic stuff one can roll on.
Boost
When stumbing on this, players jumps at max speed.
Implementations§
Trait Implementations§
Source§impl Ord for SlabDef
impl Ord for SlabDef
Source§impl PartialOrd for SlabDef
impl PartialOrd for SlabDef
impl Copy for SlabDef
impl Eq for SlabDef
impl StructuralPartialEq for SlabDef
Auto Trait Implementations§
impl Freeze for SlabDef
impl RefUnwindSafe for SlabDef
impl Send for SlabDef
impl Sync for SlabDef
impl Unpin for SlabDef
impl UnwindSafe for SlabDef
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