pub struct LiftoffEvent {
pub position: Option<LiftoffEventPosition>,
pub star_system: String,
pub system_address: u64,
pub body: String,
pub body_id: u8,
pub on_station: bool,
pub on_planet: bool,
pub multicrew: bool,
pub nearest_destination: Option<String>,
pub taxi: bool,
pub player_controlled: bool,
}
Expand description
Fired when lifting off from a planet.
Fields§
§position: Option<LiftoffEventPosition>
The coordinates where the player has lifted off when on a planet.
star_system: String
The name of the star system the player is currently in.
system_address: u64
The address of the star system the player is currently in.
body: String
The name of the body the player lifting off from.
body_id: u8
The id of the body the player lifting off from.
on_station: bool
Whether the player is lifting off from a settlement.
on_planet: bool
Whether the player is lifting off from the surface of the planet and not from a landing pad.
multicrew: bool
Whether the player is currently in multicrew.
nearest_destination: Option<String>
Name of the nearest destination.
taxi: bool
Whether the liftoff is fired from a taxi ship.
player_controlled: bool
Whether the player is controlling the ship.
Trait Implementations§
Source§impl Clone for LiftoffEvent
impl Clone for LiftoffEvent
Source§fn clone(&self) -> LiftoffEvent
fn clone(&self) -> LiftoffEvent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LiftoffEvent
impl Debug for LiftoffEvent
Source§impl<'de> Deserialize<'de> for LiftoffEvent
impl<'de> Deserialize<'de> for LiftoffEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LiftoffEvent
impl PartialEq for LiftoffEvent
Source§impl Serialize for LiftoffEvent
impl Serialize for LiftoffEvent
impl StructuralPartialEq for LiftoffEvent
Auto Trait Implementations§
impl Freeze for LiftoffEvent
impl RefUnwindSafe for LiftoffEvent
impl Send for LiftoffEvent
impl Sync for LiftoffEvent
impl Unpin for LiftoffEvent
impl UnwindSafe for LiftoffEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more