ed_journals/modules/logs/content/log_event_content/
material_collected_event.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Fired when the player collects an engineering material.

use crate::materials::{Material, MaterialCategory};
use serde::{Deserialize, Serialize};

/// Fired when the player collects an engineering material.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct MaterialCollectedEvent {
    /// The kind of material collected.
    pub name: Material,

    /// The category the material belongs to.
    pub category: MaterialCategory,

    /// The amount of the given material collected.
    pub count: u16,
}