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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//! Fired when the player leaves a body.

use serde::{Deserialize, Serialize};

/// Fired when the player leaves a body.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct LeaveBodyEvent {
    /// The name of the system the body is located in.
    pub star_system: String,

    /// The address of the system the body is located in.
    pub system_address: u64,

    /// The name of the body left.
    pub body: String,

    /// The id of the body.
    #[serde(rename = "BodyID")]
    pub body_id: u8,
}