pub struct MapItem {
pub team_id: TeamId,
pub icon_type: IconType,
pub x: f32,
pub y: f32,
pub flags: u16,
}
Expand description
Contains information about a single item present on a map hex.
Includes the owner of the item, its position, as well as what type of item it is.
Fields§
§team_id: TeamId
§icon_type: IconType
§x: f32
§y: f32
§flags: u16
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MapItem
impl<'de> Deserialize<'de> for MapItem
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 MapItem
Auto Trait Implementations§
impl Freeze for MapItem
impl RefUnwindSafe for MapItem
impl Send for MapItem
impl Sync for MapItem
impl Unpin for MapItem
impl UnwindSafe for MapItem
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