pub struct TileSet {
pub name: String,
pub cell: [f32; 2],
pub tiles: Vec<Tile>,
}Expand description
Reusable collection of tiles sharing a grid metric.
Fields§
§name: String§cell: [f32; 2]Cell size: [width in X, depth in Z], meters.
tiles: Vec<Tile>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TileSet
impl<'de> Deserialize<'de> for TileSet
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 UnsafeUnpin 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