[][src]Struct ldtk_rust::TilesetDefinition

pub struct TilesetDefinition {
    pub cached_pixel_data: Option<HashMap<String, Option<Value>>>,
    pub identifier: String,
    pub padding: i64,
    pub px_hei: i64,
    pub px_wid: i64,
    pub rel_path: String,
    pub saved_selections: Vec<HashMap<String, Option<Value>>>,
    pub spacing: i64,
    pub tile_grid_size: i64,
    pub uid: i64,
}

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: i64uid: i64

Unique Intidentifier

Trait Implementations

impl<'de> Deserialize<'de> for TilesetDefinition[src]

impl Serialize for TilesetDefinition[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.