Struct ldtk2::TilesetDefinition [−][src]
The Tileset
definition is the most important part among project definitions. It
contains some extra informations about each integrated tileset. If you only had to parse
one definition section, that would be the one.
Fields
cached_pixel_data: Option<HashMap<String, Option<Value>>>
The following data is used internally for various optimizations. It's always synced with source image changes.
identifier: String
Unique String identifier
padding: i64
Distance in pixels from image borders
px_hei: i64
Image height in pixels
px_wid: i64
Image width in pixels
rel_path: String
Path to the source file, relative to the current project JSON file
saved_selections: Vec<HashMap<String, Option<Value>>>
Array of group of tiles selections, only meant to be used in the editor
spacing: i64
Space in pixels between all tiles
tile_grid_size: i64
uid: i64
Unique Intidentifier
Trait Implementations
impl<'de> Deserialize<'de> for TilesetDefinition
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for TilesetDefinition
[src]
Auto Trait Implementations
impl RefUnwindSafe for TilesetDefinition
[src]
impl Send for TilesetDefinition
[src]
impl Sync for TilesetDefinition
[src]
impl Unpin for TilesetDefinition
[src]
impl UnwindSafe for TilesetDefinition
[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>,