ed_journals/modules/status/models/
planet_status.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
use serde::{Deserialize, Serialize};

/// Part of the status that includes information about the planet that the player is close to.
#[derive(Debug, Serialize, Deserialize, PartialEq, Clone)]
#[serde(rename_all = "PascalCase")]
pub struct PlanetStatus {
    /// The current latitude position of the player for the nearest planet.
    pub latitude: f32,

    /// The current longitude position of the player for the nearest planet.
    pub longitude: f32,

    /// This is set to [None] if the player is currently on-foot.
    pub altitude: Option<f32>,

    /// The heading of the player in degrees, going from 0 to 360.
    pub heading: f32,

    /// The name of the body the player is currently close to.
    pub body_name: String,

    /// The radius of the planet in meters.
    pub planet_radius: f32,
}