#[repr(C)]pub struct SUnitCapturedEvent {
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 an other through capturing. 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 SUnitCapturedEvent
impl Clone for SUnitCapturedEvent
Source§fn clone(&self) -> SUnitCapturedEvent
fn clone(&self) -> SUnitCapturedEvent
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 SUnitCapturedEvent
impl Debug for SUnitCapturedEvent
impl Copy for SUnitCapturedEvent
Auto Trait Implementations§
impl Freeze for SUnitCapturedEvent
impl RefUnwindSafe for SUnitCapturedEvent
impl Send for SUnitCapturedEvent
impl Sync for SUnitCapturedEvent
impl Unpin for SUnitCapturedEvent
impl UnwindSafe for SUnitCapturedEvent
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