pub struct LocationEvent {
pub dist_from_star_ls: Option<f32>,
pub docked: bool,
pub taxi: bool,
pub multicrew: bool,
pub location_info: LocationInfo,
}
Expand description
Fired at times when the game loads in a location, usually when just starting the game or when the player is moven between locations for example by using a fleet carrier escape pod or when the player died.
Fields§
§dist_from_star_ls: Option<f32>
Distance from the arrival star of the current system.
docked: bool
Whether the player is currently docked.
taxi: bool
Whether the player is in a taxi.
multicrew: bool
Whether the player is currently in a multicrew.
location_info: LocationInfo
Detailed information about the current location.
Trait Implementations§
Source§impl Clone for LocationEvent
impl Clone for LocationEvent
Source§fn clone(&self) -> LocationEvent
fn clone(&self) -> LocationEvent
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 LocationEvent
impl Debug for LocationEvent
Source§impl<'de> Deserialize<'de> for LocationEvent
impl<'de> Deserialize<'de> for LocationEvent
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 LocationEvent
impl PartialEq for LocationEvent
Source§impl Serialize for LocationEvent
impl Serialize for LocationEvent
impl StructuralPartialEq for LocationEvent
Auto Trait Implementations§
impl Freeze for LocationEvent
impl RefUnwindSafe for LocationEvent
impl Send for LocationEvent
impl Sync for LocationEvent
impl Unpin for LocationEvent
impl UnwindSafe for LocationEvent
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