pub struct TileData {
pub image: Option<Image>,
pub properties: Properties,
pub collision: Option<ObjectLayerData>,
pub animation: Option<Vec<Frame>>,
pub user_type: Option<String>,
pub probability: f32,
pub image_rect: Option<ImageRect>,
}Expand description
Raw data belonging to a tile.
Fields§
§image: Option<Image>The image of the tile. Only set when the tile is part of an “image collection” tileset.
properties: PropertiesThe custom properties of this tile.
collision: Option<ObjectLayerData>The collision shapes of this tile.
animation: Option<Vec<Frame>>The animation frames of this tile.
user_type: Option<String>The type of this tile.
probability: f32The probability of this tile.
image_rect: Option<ImageRect>The image rect of this tile, which is only used in image collection tilesets and corresponds
to the TMX x, y, width and height tile attributes.
Trait Implementations§
impl StructuralPartialEq for TileData
Auto Trait Implementations§
impl Freeze for TileData
impl RefUnwindSafe for TileData
impl Send for TileData
impl Sync for TileData
impl Unpin for TileData
impl UnwindSafe for TileData
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