pub enum Shape {
None,
Sprite {
tileset: u8,
anim_id: u8,
flip_h: bool,
flip_v: bool,
},
BgSprite {
tileset: u8,
anim_id: u8,
tilemap_entity: EntityID,
flip_h: bool,
flip_v: bool,
},
Bg {
tileset: u8,
tilemap_id: u8,
},
}
Expand description
Determines how an entity’s rectangle is rendered to pixels.
Variants§
Implementations§
source§impl Shape
impl Shape
pub fn sprite_from_anim( tileset: impl TilesetEnum, anim_id: impl Into<u8> ) -> Self
pub fn anim_tiles_from_anim( tileset: impl TilesetEnum, anim_id: impl Into<u8>, tilemap_entity: EntityID ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnwindSafe for Shape
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