pub struct Tile {
pub idx: usize,
pub flip_x: bool,
pub flip_y: bool,
}Expand description
A tilemap tile component.
Fields§
§idx: usizeThe tile index in the tilemap texture.
flip_x: boolWhether or not to flip the tile horizontally.
flip_y: boolWhether or not to flip tile vertically.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Tile
impl Send for Tile
impl Sync for Tile
impl Unpin for Tile
impl UnwindSafe for Tile
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
source§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere T: Default,
source§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates
Self using data from the given World.