pub struct ObjectTileData {
pub flip_h: bool,
pub flip_v: bool,
pub flip_d: bool,
/* private fields */
}Expand description
Stores the internal tile gid about a layer tile, along with how it is flipped.
Fields§
§flip_h: boolWhether this tile is flipped on its Y axis (horizontally).
flip_v: boolWhether this tile is flipped on its X axis (vertically).
flip_d: boolWhether this tile is flipped diagonally.
Implementations§
Source§impl ObjectTileData
impl ObjectTileData
Sourcepub fn tileset_location(&self) -> &TilesetLocation
pub fn tileset_location(&self) -> &TilesetLocation
Get a reference to the object tile data’s tileset location, which points to a tileset that may or may not contain this tile.
Trait Implementations§
Source§impl Clone for ObjectTileData
impl Clone for ObjectTileData
Source§fn clone(&self) -> ObjectTileData
fn clone(&self) -> ObjectTileData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjectTileData
impl Debug for ObjectTileData
Source§impl PartialEq for ObjectTileData
impl PartialEq for ObjectTileData
impl StructuralPartialEq for ObjectTileData
Auto Trait Implementations§
impl Freeze for ObjectTileData
impl RefUnwindSafe for ObjectTileData
impl Send for ObjectTileData
impl Sync for ObjectTileData
impl Unpin for ObjectTileData
impl UnwindSafe for ObjectTileData
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