ed_journals/modules/logs/content/log_event_content/
buy_drones_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
//! Fired when the player buys limpets at a station.

use serde::{Deserialize, Serialize};

/// Fired when the player buys limpets at a station.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct BuyDronesEvent {
    /// The type of drone that was bought. Currently, this is always [BuyDronesEventType::Drones].
    #[serde(rename = "Type")]
    pub kind: BuyDronesEventType,

    /// The number of limpet that were bought.
    pub count: u16,

    /// The buy price per limpet.
    pub buy_price: u64,

    /// The total paid credits for all the limpets.
    pub total_cost: u64,
}

#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub enum BuyDronesEventType {
    Drones,
}