pub struct MaterialCollectedEvent {
pub name: Material,
pub category: MaterialCategory,
pub count: u16,
}
Expand description
Fired when the player collects an engineering material.
Fields§
§name: Material
The kind of material collected.
category: MaterialCategory
The category the material belongs to.
count: u16
The amount of the given material collected.
Trait Implementations§
Source§impl Clone for MaterialCollectedEvent
impl Clone for MaterialCollectedEvent
Source§fn clone(&self) -> MaterialCollectedEvent
fn clone(&self) -> MaterialCollectedEvent
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 MaterialCollectedEvent
impl Debug for MaterialCollectedEvent
Source§impl<'de> Deserialize<'de> for MaterialCollectedEvent
impl<'de> Deserialize<'de> for MaterialCollectedEvent
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 MaterialCollectedEvent
impl PartialEq for MaterialCollectedEvent
Source§impl Serialize for MaterialCollectedEvent
impl Serialize for MaterialCollectedEvent
impl StructuralPartialEq for MaterialCollectedEvent
Auto Trait Implementations§
impl Freeze for MaterialCollectedEvent
impl RefUnwindSafe for MaterialCollectedEvent
impl Send for MaterialCollectedEvent
impl Sync for MaterialCollectedEvent
impl Unpin for MaterialCollectedEvent
impl UnwindSafe for MaterialCollectedEvent
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