pub struct Flags(/* private fields */);
Expand description
The current flags for the player. These flags are mostly for things that are related to the player’s ship.
Implementations§
Source§impl Flags
impl Flags
Sourcepub fn landing_gear_down(&self) -> bool
pub fn landing_gear_down(&self) -> bool
Whether the landing gear is currently down.
Sourcepub fn shields_up(&self) -> bool
pub fn shields_up(&self) -> bool
Whether the shields are up.
Sourcepub fn supercruise(&self) -> bool
pub fn supercruise(&self) -> bool
Whether player is currently flying in supercruise.
Sourcepub fn flight_assist_off(&self) -> bool
pub fn flight_assist_off(&self) -> bool
Whether flight assist has been turned off.
Sourcepub fn hardpoints_deployed(&self) -> bool
pub fn hardpoints_deployed(&self) -> bool
Whether the hardpoints of the ship are currently deployed.
Sourcepub fn cargo_scoop_deployed(&self) -> bool
pub fn cargo_scoop_deployed(&self) -> bool
Whether the cargo scoop of the current active vehicle is deployed.
Sourcepub fn silent_running(&self) -> bool
pub fn silent_running(&self) -> bool
Whether silent running is currently active.
Sourcepub fn scooping_fuel(&self) -> bool
pub fn scooping_fuel(&self) -> bool
Whether the player is currently fuel scooping.
Sourcepub fn srv_handbreak(&self) -> bool
pub fn srv_handbreak(&self) -> bool
Whether the SRV handbreak is currently on.
Sourcepub fn srv_turret_view(&self) -> bool
pub fn srv_turret_view(&self) -> bool
Whether the player is currently directly piloting the SRV turret.
Sourcepub fn srv_turret_retracted(&self) -> bool
pub fn srv_turret_retracted(&self) -> bool
Whether the turret of the SRV has been retracted. The turret is retracted when the player is close to their own ship.
Sourcepub fn srv_drive_assist(&self) -> bool
pub fn srv_drive_assist(&self) -> bool
Whether the player has enabled drive assist in the SRV.
Sourcepub fn fsd_masslocked(&self) -> bool
pub fn fsd_masslocked(&self) -> bool
Whether the FSD is currently masslocked. This prevents the player from charging the FSD.
Sourcepub fn fsd_charging(&self) -> bool
pub fn fsd_charging(&self) -> bool
Whether the FSD is currently spinning up. This does not differentiate between charging to jump to supercruise or hyperspace.
Sourcepub fn fsd_cooldown(&self) -> bool
pub fn fsd_cooldown(&self) -> bool
Whether the FSD is currently cooling down. This prevents the player from charging the FSD.
Sourcepub fn low_fuel(&self) -> bool
pub fn low_fuel(&self) -> bool
Whether the player’s current vehicle is low on fuel, which is when the total fuel reserves of the vehicle drop below 25%.
Sourcepub fn overheating(&self) -> bool
pub fn overheating(&self) -> bool
Whether the player’s current vehicle is overheating, which is when the heat level exceeds 100% heat.
Sourcepub fn has_lat_long(&self) -> bool
pub fn has_lat_long(&self) -> bool
Whether the lat/long values are available in the status. Set when near a planet.
Sourcepub fn in_danger(&self) -> bool
pub fn in_danger(&self) -> bool
Whether the player is counted as ‘in danger’. If this is true then the player has to wait 15 seconds before they can log out of the game.
Sourcepub fn being_interdicted(&self) -> bool
pub fn being_interdicted(&self) -> bool
Whether the player is currently getting interdicted. This doesn’t differentiate between an attempt by an NPC or a player.
Sourcepub fn in_main_ship(&self) -> bool
pub fn in_main_ship(&self) -> bool
Whether the player is currently piloting the main ship (aka the mother ship.)
Sourcepub fn in_fighter(&self) -> bool
pub fn in_fighter(&self) -> bool
Whether the player is currently piloting a fighter.
Sourcepub fn analysis_mode(&self) -> bool
pub fn analysis_mode(&self) -> bool
Whether the current cockpit mode is currently set to analysis mode.
Sourcepub fn night_vision(&self) -> bool
pub fn night_vision(&self) -> bool
Whether night vision is currently active.
Sourcepub fn altitude_from_average_radius(&self) -> bool
pub fn altitude_from_average_radius(&self) -> bool
Is set when the average radius of the planet is used for the altitude instead of the altitude to the actual terrain and elevation of the planet’s surface.
Sourcepub fn srv_high_beam(&self) -> bool
pub fn srv_high_beam(&self) -> bool
Whether the SRV has the high beam lights active.