pub struct Loadout(/* private fields */);Expand description
Arma Unit Loadout Array
Implementations§
Source§impl Loadout
impl Loadout
Sourcepub fn primary_mut(&mut self) -> &mut Weapon
pub fn primary_mut(&mut self) -> &mut Weapon
Get the primary weapon mutably
Sourcepub fn set_primary(&mut self, primary: Weapon)
pub fn set_primary(&mut self, primary: Weapon)
Set the primary weapon
Sourcepub fn secondary_mut(&mut self) -> &mut Weapon
pub fn secondary_mut(&mut self) -> &mut Weapon
Get the secondary weapon (launcher) mutably
Sourcepub fn set_secondary(&mut self, secondary: Weapon)
pub fn set_secondary(&mut self, secondary: Weapon)
Set the secondary weapon (launcher)
Sourcepub fn handgun_mut(&mut self) -> &mut Weapon
pub fn handgun_mut(&mut self) -> &mut Weapon
Get the handgun weapon mutably
Sourcepub fn set_handgun(&mut self, handgun: Weapon)
pub fn set_handgun(&mut self, handgun: Weapon)
Set the handgun weapon
Sourcepub fn uniform_mut(&mut self) -> &mut Container
pub fn uniform_mut(&mut self) -> &mut Container
Get the uniform mutably
Sourcepub fn set_uniform(&mut self, uniform: Container)
pub fn set_uniform(&mut self, uniform: Container)
Set the uniform
Sourcepub fn backpack_mut(&mut self) -> &mut Container
pub fn backpack_mut(&mut self) -> &mut Container
Get the backpack mutably
Sourcepub fn set_backpack(&mut self, backpack: Container)
pub fn set_backpack(&mut self, backpack: Container)
Set the backpack
Sourcepub fn set_headgear(&mut self, headgear: String)
pub fn set_headgear(&mut self, headgear: String)
Set the class name of the current headgear
Sourcepub fn set_goggles(&mut self, goggles: String)
pub fn set_goggles(&mut self, goggles: String)
Set the class name of the current goggles / facewear
Sourcepub const fn binoculars(&self) -> &Weapon
pub const fn binoculars(&self) -> &Weapon
Get the binocular
Sourcepub fn binoculars_mut(&mut self) -> &mut Weapon
pub fn binoculars_mut(&mut self) -> &mut Weapon
Get the binocular mutably
Sourcepub fn set_binoculars(&mut self, binoculars: Weapon)
pub fn set_binoculars(&mut self, binoculars: Weapon)
Set the binocular
Sourcepub const fn assigned_items(&self) -> &AssignedItems
pub const fn assigned_items(&self) -> &AssignedItems
Get the assigned items
Sourcepub fn assigned_items_mut(&mut self) -> &mut AssignedItems
pub fn assigned_items_mut(&mut self) -> &mut AssignedItems
Get the assigned items mutably
Sourcepub fn set_assigned_items(&mut self, assigned_items: AssignedItems)
pub fn set_assigned_items(&mut self, assigned_items: AssignedItems)
Set the assigned items
Sourcepub fn cba_extended(&self) -> &CBAExtended
pub fn cba_extended(&self) -> &CBAExtended
Get the CBA Extended Loadout Array
Trait Implementations§
impl StructuralPartialEq for Loadout
Auto Trait Implementations§
impl Freeze for Loadout
impl RefUnwindSafe for Loadout
impl Send for Loadout
impl Sync for Loadout
impl Unpin for Loadout
impl UnwindSafe for Loadout
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