pub struct Tileset { /* private fields */ }
Expand description
The main way to organize different tiles and their associated assets: Fonts, Anims and Tilemaps.
Implementations§
source§impl Tileset
impl Tileset
pub fn tile_count(&self) -> u8
pub fn debug_palette(&self) -> u8
pub fn anims(&self) -> &Vec<Anim>
pub fn fonts(&self) -> &Vec<Font>
pub fn tilemaps(&self) -> &Vec<Tilemap>
pub fn anim_count(&self) -> u8
pub fn font_count(&self) -> u8
pub fn tilemap_count(&self) -> u8
pub fn push_anim(&mut self, anim: Anim)
pub fn push_font(&mut self, font: Font)
pub fn push_tilemap(&mut self, map: Tilemap)
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