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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//! Fired when launching a ship launched fighter.

use serde::{Deserialize, Serialize};

use crate::modules::ship::FighterLoadout;

/// Fired when launching a ship launched fighter.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct LaunchFighterEvent {
    /// The used layout for the ship launched fighter.
    pub loadout: FighterLoadout,

    /// The id of the fighter.
    #[serde(rename = "ID")]
    pub id: u8,

    /// Whether the fighter is controlled by the current player.
    pub player_controlled: bool,
}