pub struct LayerTileData {
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: bool
Whether this tile is flipped on its Y axis (horizontally).
flip_v: bool
Whether this tile is flipped on its X axis (vertically).
flip_d: bool
Whether this tile is flipped diagonally.
Implementations§
Source§impl LayerTileData
impl LayerTileData
Sourcepub fn tileset_index(&self) -> usize
pub fn tileset_index(&self) -> usize
Get the layer tile’s tileset index. Guaranteed to be a valid index of the map tileset container, but isn’t guaranteed to actually contain this tile.
Use LayerTile::get_tile
if you want to obtain the Tile
that this layer tile is
referencing.
Trait Implementations§
Source§impl Clone for LayerTileData
impl Clone for LayerTileData
Source§fn clone(&self) -> LayerTileData
fn clone(&self) -> LayerTileData
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 LayerTileData
impl Debug for LayerTileData
Source§impl PartialEq for LayerTileData
impl PartialEq for LayerTileData
impl Copy for LayerTileData
impl Eq for LayerTileData
impl StructuralPartialEq for LayerTileData
Auto Trait Implementations§
impl Freeze for LayerTileData
impl RefUnwindSafe for LayerTileData
impl Send for LayerTileData
impl Sync for LayerTileData
impl Unpin for LayerTileData
impl UnwindSafe for LayerTileData
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