pub struct Tile {
pub image: Option<Texture>,
pub top_left: Vec2,
pub bottom_right: Vec2,
pub width: i32,
pub height: i32,
pub animation: Vec<Frame>,
pub properties: HashMap<String, Property>,
pub object_group: Vec<Object>,
}Expand description
A single tile description
Fields§
§image: Option<Texture>The image that this tile was taken from
top_left: Vec2The top left UV coordinates of this tile within `image.
bottom_right: Vec2The bottom right UV coordinates of this tile within `image.
width: i32The width in pixels of this tile.
height: i32The height in pixels of this tile.
animation: Vec<Frame>§properties: HashMap<String, Property>Custom properties defined on this tile.
object_group: Vec<Object>ObjectGroup attached to this tile
Auto Trait Implementations§
impl Freeze for Tile
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more