#[repr(C)]pub struct SUnitDestroyedEvent {
pub unit: c_int,
pub attacker: c_int,
pub weaponDefID: c_int,
}
Expand description
This AI event is sent when a unit was destroyed; see also the unit-damaged event.
Fields§
§unit: c_int
§attacker: c_int
may be -1, which means no attacker was directly involveld, or the attacker is not visible and cheat events are off
weaponDefID: c_int
Trait Implementations§
Source§impl Clone for SUnitDestroyedEvent
impl Clone for SUnitDestroyedEvent
Source§fn clone(&self) -> SUnitDestroyedEvent
fn clone(&self) -> SUnitDestroyedEvent
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 SUnitDestroyedEvent
impl Debug for SUnitDestroyedEvent
impl Copy for SUnitDestroyedEvent
Auto Trait Implementations§
impl Freeze for SUnitDestroyedEvent
impl RefUnwindSafe for SUnitDestroyedEvent
impl Send for SUnitDestroyedEvent
impl Sync for SUnitDestroyedEvent
impl Unpin for SUnitDestroyedEvent
impl UnwindSafe for SUnitDestroyedEvent
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