use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone)]
pub struct Flags2(u64);
impl Flags2 {
pub fn on_foot(&self) -> bool {
self.0 & 1 != 0
}
pub fn in_taxi(&self) -> bool {
self.0 & 2 != 0
}
pub fn in_multicrew(&self) -> bool {
self.0 & 4 != 0
}
pub fn on_foot_in_station(&self) -> bool {
self.0 & 8 != 0
}
pub fn on_foot_on_planet(&self) -> bool {
self.0 & 16 != 0
}
pub fn aim_down_sight(&self) -> bool {
self.0 & 32 != 0
}
pub fn low_oxygen(&self) -> bool {
self.0 & 64 != 0
}
pub fn low_health(&self) -> bool {
self.0 & 128 != 0
}
pub fn cold(&self) -> bool {
self.0 & 256 != 0
}
pub fn hot(&self) -> bool {
self.0 & 512 != 0
}
pub fn very_cold(&self) -> bool {
self.0 & 1024 != 0
}
pub fn very_hot(&self) -> bool {
self.0 & 2048 != 0
}
pub fn glide_mode(&self) -> bool {
self.0 & 4096 != 0
}
pub fn on_foot_in_hangar(&self) -> bool {
self.0 & 8192 != 0
}
pub fn on_foot_social_space(&self) -> bool {
self.0 & 16384 != 0
}
pub fn on_foot_exterior(&self) -> bool {
self.0 & 32768 != 0
}
pub fn breathable_atmosphere(&self) -> bool {
self.0 & 65536 != 0
}
pub fn telepresence_multicrew(&self) -> bool {
self.0 & 131072 != 0
}
pub fn physical_multicrew(&self) -> bool {
self.0 & 262144 != 0
}
pub fn fsd_hyperdrive_charging(&self) -> bool {
self.0 & 524288 != 0
}
}