pub struct GridMap<T, F> {
pub name: String,
pub tiles: Grid<T>,
pub features: BTreeMap<Pos, F>,
pub legend: Legend<T>,
pub look: MapLook,
}Expand description
A map read from a .map file: its tiles and features, the legend it
was written with (for printing it back) and its look.
Fields§
§name: StringThe map’s display name.
tiles: Grid<T>The terrain of each tile.
features: BTreeMap<Pos, F>The game’s features, by tile.
legend: Legend<T>The legend from the file.
look: MapLookHow the map looks.
Trait Implementations§
Source§impl<'de, T, F> Deserialize<'de> for GridMap<T, F>where
T: Deserialize<'de>,
F: Deserialize<'de>,
impl<'de, T, F> Deserialize<'de> for GridMap<T, F>where
T: Deserialize<'de>,
F: Deserialize<'de>,
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<T: Eq, F: Eq> Eq for GridMap<T, F>
impl<T: PartialEq, F: PartialEq> StructuralPartialEq for GridMap<T, F>
Auto Trait Implementations§
impl<T, F> Freeze for GridMap<T, F>
impl<T, F> RefUnwindSafe for GridMap<T, F>where
T: RefUnwindSafe,
F: RefUnwindSafe,
impl<T, F> Send for GridMap<T, F>
impl<T, F> Sync for GridMap<T, F>
impl<T, F> Unpin for GridMap<T, F>where
T: Unpin,
impl<T, F> UnsafeUnpin for GridMap<T, F>
impl<T, F> UnwindSafe for GridMap<T, F>
Blanket Implementations§
impl<K> Bakeable for K
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