#[repr(C)]pub struct SGatherWaitUnitCommand {
pub unitId: c_int,
pub groupId: c_int,
pub options: c_short,
pub timeOut: c_int,
}
Expand description
Wait for the arrival of all units included in the command. Only makes sense for a group of units. Use it after a movement command of some sort (move / fight). Units will wait until all members of the GatherWait command have arrived at their destinations before continuing.
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
Trait Implementations§
Source§impl Clone for SGatherWaitUnitCommand
impl Clone for SGatherWaitUnitCommand
Source§fn clone(&self) -> SGatherWaitUnitCommand
fn clone(&self) -> SGatherWaitUnitCommand
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 SGatherWaitUnitCommand
impl Debug for SGatherWaitUnitCommand
impl Copy for SGatherWaitUnitCommand
Auto Trait Implementations§
impl Freeze for SGatherWaitUnitCommand
impl RefUnwindSafe for SGatherWaitUnitCommand
impl Send for SGatherWaitUnitCommand
impl Sync for SGatherWaitUnitCommand
impl Unpin for SGatherWaitUnitCommand
impl UnwindSafe for SGatherWaitUnitCommand
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