pub struct FSDJumpEvent {
pub jump_dist: GalacticDistance,
pub fuel_used: f32,
pub fuel_level: f32,
pub system_info: LocationInfo,
}
Expand description
Fired when the player jumps to another system. This is fired when traveling between systems.
Fields§
§jump_dist: GalacticDistance
The distance the player has jumped in LY.
fuel_used: f32
The number of tonnes of fuel used for the jump.
fuel_level: f32
The new fuel level after the jump.
system_info: LocationInfo
Information about the system the player is jumping to.
Trait Implementations§
Source§impl Clone for FSDJumpEvent
impl Clone for FSDJumpEvent
Source§fn clone(&self) -> FSDJumpEvent
fn clone(&self) -> FSDJumpEvent
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 FSDJumpEvent
impl Debug for FSDJumpEvent
Source§impl<'de> Deserialize<'de> for FSDJumpEvent
impl<'de> Deserialize<'de> for FSDJumpEvent
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 FSDJumpEvent
impl PartialEq for FSDJumpEvent
Source§impl Serialize for FSDJumpEvent
impl Serialize for FSDJumpEvent
impl StructuralPartialEq for FSDJumpEvent
Auto Trait Implementations§
impl Freeze for FSDJumpEvent
impl RefUnwindSafe for FSDJumpEvent
impl Send for FSDJumpEvent
impl Sync for FSDJumpEvent
impl Unpin for FSDJumpEvent
impl UnwindSafe for FSDJumpEvent
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