pub struct Tileset { /* private fields */ }Expand description
Detailed information on a tileset.
Implementations§
Source§impl Tileset
impl Tileset
Sourcepub fn name_mut(&mut self) -> &mut String
pub fn name_mut(&mut self) -> &mut String
Mutable reference accessor for Tileset::name.
Sourcepub fn base_tileset(&self) -> &str
pub fn base_tileset(&self) -> &str
The file from which most of the tiles are taken.
Sourcepub fn base_tileset_mut(&mut self) -> &mut String
pub fn base_tileset_mut(&mut self) -> &mut String
Mutable reference accessor for Tileset::base_tileset.
Sourcepub fn auto_tiles(&self) -> &[String; 15]
pub fn auto_tiles(&self) -> &[String; 15]
A list of files from which the automatic tiles are taken.
Automatic tiles display differently based on the tiles they are next to, such as water rendering the edge of a pond if it’s close to grass.
Sourcepub fn auto_tiles_mut(&mut self) -> &mut [String; 15]
pub fn auto_tiles_mut(&mut self) -> &mut [String; 15]
Mutable reference accessor for Tileset::auto_tiles.
Sourcepub fn tiles_mut(&mut self) -> &mut Vec<Tile>
pub fn tiles_mut(&mut self) -> &mut Vec<Tile>
Mutable reference accessor for Tileset::tiles.
Trait Implementations§
impl StructuralPartialEq for Tileset
Auto Trait Implementations§
impl Freeze for Tileset
impl RefUnwindSafe for Tileset
impl Send for Tileset
impl Sync for Tileset
impl Unpin for Tileset
impl UnwindSafe for Tileset
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