#[non_exhaustive]pub struct TilesetExport {
pub name: String,
pub file: String,
pub image: Image,
pub tile_width: u32,
pub tile_height: u32,
pub columns: u32,
pub padding: u32,
pub tiles: Vec<String>,
pub terrains: Vec<(String, Scheme, u32)>,
}Expand description
A tileset’s texture and what the metadata says of it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: String§file: StringThe texture’s file name: tileset-NAME.png.
image: ImageTile 1 at the top left, then row by row, columns a row, each with padding
pixels around it.
tile_width: u32§tile_height: u32§columns: u32§padding: u32Pixels around each tile, as AtlasOptions::padding: tiles are
2 * padding apart and padding from the edges.
tiles: Vec<String>The tiles’ names in index order: tiles[0] is tile 1. A terrain’s variants
are TERRAIN/VARIANT.
terrains: Vec<(String, Scheme, u32)>Each terrain’s name, scheme and first tile index.
Implementations§
Source§impl TilesetExport
impl TilesetExport
Trait Implementations§
Source§impl Clone for TilesetExport
impl Clone for TilesetExport
Source§impl Debug for TilesetExport
impl Debug for TilesetExport
impl Eq for TilesetExport
Source§impl PartialEq for TilesetExport
impl PartialEq for TilesetExport
impl StructuralPartialEq for TilesetExport
Auto Trait Implementations§
impl Freeze for TilesetExport
impl RefUnwindSafe for TilesetExport
impl Send for TilesetExport
impl Sync for TilesetExport
impl Unpin for TilesetExport
impl UnsafeUnpin for TilesetExport
impl UnwindSafe for TilesetExport
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