#[repr(C)]pub struct SUnitGivenEvent {
pub unitId: c_int,
pub oldTeamId: c_int,
pub newTeamId: c_int,
}
Expand description
This AI event is sent when a unit changed from one team to another, either because the old owner gave it to the new one, or because the new one took it from the old one; see the /take command. Both giving and receiving team will get this event.
Fields§
§unitId: c_int
§oldTeamId: c_int
§newTeamId: c_int
Trait Implementations§
Source§impl Clone for SUnitGivenEvent
impl Clone for SUnitGivenEvent
Source§fn clone(&self) -> SUnitGivenEvent
fn clone(&self) -> SUnitGivenEvent
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 SUnitGivenEvent
impl Debug for SUnitGivenEvent
impl Copy for SUnitGivenEvent
Auto Trait Implementations§
impl Freeze for SUnitGivenEvent
impl RefUnwindSafe for SUnitGivenEvent
impl Send for SUnitGivenEvent
impl Sync for SUnitGivenEvent
impl Unpin for SUnitGivenEvent
impl UnwindSafe for SUnitGivenEvent
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