[−][src]Struct ldtk::Tile
Fields
d: Vec<i64>
Internal data used by the editor.
For auto-layer tiles: [ruleId, coordId]
.
For tile-layer tiles: [coordId]
.
f: i64
"Flip bits", a 2-bits integer to represent the mirror transformations of the
tile.
- Bit 0 = X flip
- Bit 1 = Y flip
Examples:
f=0 (no flip), f=1 (X flip only), f=2 (Y flip only), f=3 (both flips)
px: Vec<i64>
Pixel coordinates of the tile in the layer ([x,y]
format). Don't forget optional
layer offsets, if they exist!
src: Vec<i64>
Pixel coordinates of the tile in the tileset ([x,y]
format)
t: i64
The Tile ID in the corresponding tileset.
Trait Implementations
impl Debug for Tile
[src]
impl<'de> Deserialize<'de> for Tile
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Tile
[src]
Auto Trait Implementations
impl RefUnwindSafe for Tile
[src]
impl Send for Tile
[src]
impl Sync for Tile
[src]
impl Unpin for Tile
[src]
impl UnwindSafe for Tile
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,