pub struct PassengerUnit {
pub tag: u64,
pub health: f32,
pub health_max: f32,
pub shield: f32,
pub shield_max: f32,
pub energy: f32,
pub energy_max: f32,
pub type_id: UnitTypeId,
}
Expand description
Unit inside transport or bunker. All passengers stored in passengers
field.
Fields§
§tag: u64
§health: f32
§health_max: f32
§shield: f32
§shield_max: f32
§energy: f32
§energy_max: f32
§type_id: UnitTypeId
Trait Implementations§
Source§impl Clone for PassengerUnit
impl Clone for PassengerUnit
Source§fn clone(&self) -> PassengerUnit
fn clone(&self) -> PassengerUnit
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 moreAuto Trait Implementations§
impl Freeze for PassengerUnit
impl RefUnwindSafe for PassengerUnit
impl Send for PassengerUnit
impl Sync for PassengerUnit
impl Unpin for PassengerUnit
impl UnwindSafe for PassengerUnit
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