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