ed_journals/modules/logs/content/log_event_content/shipyard_transfer_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 32 33 34 35 36 37 38 39 40
use serde::{Deserialize, Serialize};
use crate::modules::ship::ShipType;
/// Fired when the player starts a ship transfer between stations.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct ShipyardTransferEvent {
/// The type of the ship that is transferred.
pub ship_type: ShipType,
/// The localized name of the ship type that is transferred.
#[serde(rename = "ShipType_Localised")]
pub ship_type_localized: Option<String>,
/// The id of the ship that is transferred.
#[serde(rename = "ShipID")]
pub ship_id: u64,
/// The system the ship is transferred from.
pub system: String,
/// The market id the ship is transferred from.
#[serde(rename = "ShipMarketID")]
pub ship_market_id: u64,
/// The total distance in LY for the transfer.
pub distance: f32,
/// The cost of the transfer.
pub transfer_price: u64,
/// The time in seconds it takes for the transfer to complete.
pub transfer_time: u64,
/// The current market id where the action was performed. This is also where the ship will be
/// transferred to.
#[serde(rename = "MarketID")]
pub market_id: u64,
}