pub struct Tile {
pub id: String,
pub name: Option<String>,
pub wall: Option<bool>,
pub animation_frames: Vec<Image>,
pub colour_id: Option<u64>,
}
Fields§
§id: String
§name: Option<String>
§wall: Option<bool>
this is “optional” in that a tile can have WAL true
, WAL false
or neither
obviously Some(false) is the same as None but we want to preserve the original formatting
animation_frames: Vec<Image>
§colour_id: Option<u64>
Implementations§
Trait Implementations§
impl Eq for Tile
Auto Trait Implementations§
impl Freeze for Tile
impl RefUnwindSafe for Tile
impl Send for Tile
impl Sync for Tile
impl Unpin for Tile
impl UnwindSafe for Tile
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