#[repr(C)]pub struct SSetAutoRepairLevelUnitCommand {
pub unitId: c_int,
pub groupId: c_int,
pub options: c_short,
pub timeOut: c_int,
pub autoRepairLevel: c_int,
}
Expand description
Set the percentage of health at which a unit will return to a save place. This only works for a few units so far, mainly aircraft.
Fields§
§unitId: c_int
§groupId: c_int
§options: c_short
see enum UnitCommandOptions
timeOut: c_int
At which frame the command will time-out and consequently be removed, if execution of it has not yet begun. Can only be set locally, is not sent over the network, and is used for temporary orders. default: MAX_INT (-> do not time-out) example: currentFrame + 15
autoRepairLevel: c_int
0: 0%, 1: 30%, 2: 50%, 3: 80%
Trait Implementations§
Source§impl Clone for SSetAutoRepairLevelUnitCommand
impl Clone for SSetAutoRepairLevelUnitCommand
Source§fn clone(&self) -> SSetAutoRepairLevelUnitCommand
fn clone(&self) -> SSetAutoRepairLevelUnitCommand
Returns a duplicate 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 moreimpl Copy for SSetAutoRepairLevelUnitCommand
Auto Trait Implementations§
impl Freeze for SSetAutoRepairLevelUnitCommand
impl RefUnwindSafe for SSetAutoRepairLevelUnitCommand
impl Send for SSetAutoRepairLevelUnitCommand
impl Sync for SSetAutoRepairLevelUnitCommand
impl Unpin for SSetAutoRepairLevelUnitCommand
impl UnwindSafe for SSetAutoRepairLevelUnitCommand
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