#[repr(C)]pub struct SSendUnitsCommand {
pub unitIds: *mut c_int,
pub unitIds_size: c_int,
pub receivingTeamId: c_int,
pub ret_sentUnits: c_int,
}
Expand description
Give units specified by <unitIds> to team <receivingTeam>. <ret_sentUnits> represents how many actually were transferred. Make sure this always matches the size of <unitIds> you passed in. If it does not, then some unitId’s were filtered out.
- does not check for alliance with <receivingTeam>
- AI’s should check each unit if it is still under control of their team after the transaction via UnitTaken() and UnitGiven(), since LuaRules might block part of it
Fields§
§unitIds: *mut c_int
§unitIds_size: c_int
§receivingTeamId: c_int
§ret_sentUnits: c_int
Trait Implementations§
Source§impl Clone for SSendUnitsCommand
impl Clone for SSendUnitsCommand
Source§fn clone(&self) -> SSendUnitsCommand
fn clone(&self) -> SSendUnitsCommand
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 SSendUnitsCommand
impl Debug for SSendUnitsCommand
impl Copy for SSendUnitsCommand
Auto Trait Implementations§
impl Freeze for SSendUnitsCommand
impl RefUnwindSafe for SSendUnitsCommand
impl !Send for SSendUnitsCommand
impl !Sync for SSendUnitsCommand
impl Unpin for SSendUnitsCommand
impl UnwindSafe for SSendUnitsCommand
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