#[repr(C)]pub struct SDeathWaitUnitCommand {
pub unitId: c_int,
pub groupId: c_int,
pub options: c_short,
pub timeOut: c_int,
pub toDieUnitId: c_int,
}
Expand description
Wait until another unit is dead, units will not wait on themselves. Example: A group of aircrafts waits for an enemy’s anti-air defenses to die, before passing over their ruins to attack.
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
toDieUnitId: c_int
wait until this unit is dead
Trait Implementations§
Source§impl Clone for SDeathWaitUnitCommand
impl Clone for SDeathWaitUnitCommand
Source§fn clone(&self) -> SDeathWaitUnitCommand
fn clone(&self) -> SDeathWaitUnitCommand
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 moreSource§impl Debug for SDeathWaitUnitCommand
impl Debug for SDeathWaitUnitCommand
impl Copy for SDeathWaitUnitCommand
Auto Trait Implementations§
impl Freeze for SDeathWaitUnitCommand
impl RefUnwindSafe for SDeathWaitUnitCommand
impl Send for SDeathWaitUnitCommand
impl Sync for SDeathWaitUnitCommand
impl Unpin for SDeathWaitUnitCommand
impl UnwindSafe for SDeathWaitUnitCommand
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