#[repr(C)]pub struct SSquadWaitUnitCommand {
pub unitId: c_int,
pub groupId: c_int,
pub options: c_short,
pub timeOut: c_int,
pub numUnits: c_int,
}
Expand description
Wait for a specific ammount of units. Usually used with factories, but does work on groups without a factory too. Example: Pick a factory and give it a rallypoint, then add a SquadWait command with the number of units you want in your squads. Units will wait at the initial rally point until enough of them have arrived to make up a squad, then they will continue along their queue.
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
numUnits: c_int
Trait Implementations§
Source§impl Clone for SSquadWaitUnitCommand
impl Clone for SSquadWaitUnitCommand
Source§fn clone(&self) -> SSquadWaitUnitCommand
fn clone(&self) -> SSquadWaitUnitCommand
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 SSquadWaitUnitCommand
impl Debug for SSquadWaitUnitCommand
impl Copy for SSquadWaitUnitCommand
Auto Trait Implementations§
impl Freeze for SSquadWaitUnitCommand
impl RefUnwindSafe for SSquadWaitUnitCommand
impl Send for SSquadWaitUnitCommand
impl Sync for SSquadWaitUnitCommand
impl Unpin for SSquadWaitUnitCommand
impl UnwindSafe for SSquadWaitUnitCommand
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