pub struct TilesetDef {Show 15 fields
pub custom_data: Vec<HashMap<String, Value>>,
pub __c_hei: i32,
pub spacing: i32,
pub padding: i32,
pub tags_source_enum_uid: Option<i32>,
pub saved_selections: Vec<HashMap<String, Value>>,
pub rel_path: String,
pub px_wid: i32,
pub tile_grid_size: i32,
pub px_hei: i32,
pub enum_tags: Vec<HashMap<String, Value>>,
pub cached_pixel_data: Option<HashMap<String, Value>>,
pub uid: i32,
pub __c_wid: i32,
pub identifier: String,
}
Expand description
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§
§custom_data: Vec<HashMap<String, Value>>
An array of custom tile metadata
__c_hei: i32
Grid-based height
spacing: i32
Space in pixels between all tiles
padding: i32
Distance in pixels from image borders
Optional Enum definition UID used for this tileset meta-data
saved_selections: Vec<HashMap<String, Value>>
Array of group of tiles selections, only meant to be used in the editor
rel_path: String
Path to the source file, relative to the current project JSON file
px_wid: i32
Image width in pixels
tile_grid_size: i32
§px_hei: i32
Image height in pixels
Tileset tags using Enum values specified by tagsSourceEnumId
. This array contains 1 element per Enum value, which contains an array of all Tile IDs that are tagged with it.
cached_pixel_data: Option<HashMap<String, Value>>
The following data is used internally for various optimizations. It’s always synced with source image changes.
uid: i32
Unique Intidentifier
__c_wid: i32
Grid-based width
identifier: String
Unique String identifier
Trait Implementations§
Source§impl Clone for TilesetDef
impl Clone for TilesetDef
Source§fn clone(&self) -> TilesetDef
fn clone(&self) -> TilesetDef
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more