pub struct MaterialDiscoveredEvent {
pub name: Material,
pub category: MaterialCategory,
pub discovery_number: u16,
}
Expand description
Fired when the player collects a specific material for the first time.
Fields§
§name: Material
The kind of material discovered.
category: MaterialCategory
The category the material belongs to.
discovery_number: u16
The number assigned to the discovery.
Trait Implementations§
Source§impl Clone for MaterialDiscoveredEvent
impl Clone for MaterialDiscoveredEvent
Source§fn clone(&self) -> MaterialDiscoveredEvent
fn clone(&self) -> MaterialDiscoveredEvent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MaterialDiscoveredEvent
impl Debug for MaterialDiscoveredEvent
Source§impl<'de> Deserialize<'de> for MaterialDiscoveredEvent
impl<'de> Deserialize<'de> for MaterialDiscoveredEvent
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
Source§impl PartialEq for MaterialDiscoveredEvent
impl PartialEq for MaterialDiscoveredEvent
Source§impl Serialize for MaterialDiscoveredEvent
impl Serialize for MaterialDiscoveredEvent
impl StructuralPartialEq for MaterialDiscoveredEvent
Auto Trait Implementations§
impl Freeze for MaterialDiscoveredEvent
impl RefUnwindSafe for MaterialDiscoveredEvent
impl Send for MaterialDiscoveredEvent
impl Sync for MaterialDiscoveredEvent
impl Unpin for MaterialDiscoveredEvent
impl UnwindSafe for MaterialDiscoveredEvent
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