pub struct Flags2(/* private fields */);
Expand description
A second flags field which includes flags for the on-foot status of the player.
Implementations§
Source§impl Flags2
impl Flags2
Sourcepub fn in_multicrew(&self) -> bool
pub fn in_multicrew(&self) -> bool
Whether the current player is currently in a multicrew session.
Sourcepub fn on_foot_in_station(&self) -> bool
pub fn on_foot_in_station(&self) -> bool
Whether the player is currently on-foot in a space station.
Sourcepub fn on_foot_on_planet(&self) -> bool
pub fn on_foot_on_planet(&self) -> bool
Whether the player is currently on-foot on a planet.
Sourcepub fn aim_down_sight(&self) -> bool
pub fn aim_down_sight(&self) -> bool
Whether the player is currently aiming down the sight of a weapon.
Sourcepub fn low_oxygen(&self) -> bool
pub fn low_oxygen(&self) -> bool
Whether the player currently has a low oxygen warning.
Sourcepub fn low_health(&self) -> bool
pub fn low_health(&self) -> bool
Whether the player currently has a low health.
pub fn glide_mode(&self) -> bool
Sourcepub fn on_foot_in_hangar(&self) -> bool
pub fn on_foot_in_hangar(&self) -> bool
Whether the player is currently on-foot in the ship hangar.
Whether the player is currently on-foot in the social space in a space station.
pub fn on_foot_exterior(&self) -> bool
Sourcepub fn breathable_atmosphere(&self) -> bool
pub fn breathable_atmosphere(&self) -> bool
Whether there is a breathable atmosphere at the current location of the player.
pub fn telepresence_multicrew(&self) -> bool
pub fn physical_multicrew(&self) -> bool
Sourcepub fn fsd_hyperdrive_charging(&self) -> bool
pub fn fsd_hyperdrive_charging(&self) -> bool
Whether the FSD of the current ship is charging.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Flags2
impl<'de> Deserialize<'de> for Flags2
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
impl Eq for Flags2
impl StructuralPartialEq for Flags2
Auto Trait Implementations§
impl Freeze for Flags2
impl RefUnwindSafe for Flags2
impl Send for Flags2
impl Sync for Flags2
impl Unpin for Flags2
impl UnwindSafe for Flags2
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