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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//! Fired when the player collects an Odyssey item.

use serde::{Deserialize, Serialize};

use crate::modules::odyssey::{Item, ItemCategory};

/// Fired when the player collects an Odyssey item.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct CollectItemsEvent {
    /// The item the player has collected.
    pub name: Item,

    /// The localized name of the item the player has collected.
    #[serde(rename = "Name_Localised")]
    pub name_localized: Option<String>,

    /// The type of item the player collected.
    #[serde(rename = "Type")]
    pub kind: ItemCategory,

    /// The id of the owner of the item.
    #[serde(rename = "OwnerID")]
    pub owner_id: u64,

    /// The number of items the player collected.
    pub count: u16,

    /// Whether the items are considered stolen.
    pub stolen: bool,
}