ed_journals/modules/logs/content/log_event_content/
drop_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
//! Fired when the player drops an Odyssey item.

use serde::{Deserialize, Serialize};

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

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

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

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

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

    /// The number of items that were dropped.
    pub count: u16,
}