ed_journals/modules/logs/content/log_event_content/
fsd_target_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
//! Fired when targeting a system for an FSD jump.

use serde::{Deserialize, Serialize};

use crate::modules::galaxy::StarClass;

/// Fired when targeting a system for an FSD jump. This is either when the player manually selects
/// a target or when the next destination on a route is automatically selected.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct FSDTargetEvent {
    // TODO check when this is included
    #[serde(rename = "Starsystem")]
    star_system: Option<String>,

    /// The name of the system selected.
    name: String,

    /// Number of remaining jumps on the route, if any.
    #[serde(default)]
    remaining_jumps_in_route: u32,

    /// Star class of the select system.
    star_class: StarClass,
}