#[repr(C)]pub struct SWeaponFiredEvent {
pub unitId: c_int,
pub weaponDefId: c_int,
}
Expand description
This AI event is sent when certain weapons are fired. For performance reasons, it is not possible to send this event for all weapons. Therefore, it is currently only sent for manuall-fire weapons like for example the TA Commanders D-Gun or the Nuke.
Fields§
§unitId: c_int
§weaponDefId: c_int
Trait Implementations§
Source§impl Clone for SWeaponFiredEvent
impl Clone for SWeaponFiredEvent
Source§fn clone(&self) -> SWeaponFiredEvent
fn clone(&self) -> SWeaponFiredEvent
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 SWeaponFiredEvent
impl Debug for SWeaponFiredEvent
impl Copy for SWeaponFiredEvent
Auto Trait Implementations§
impl Freeze for SWeaponFiredEvent
impl RefUnwindSafe for SWeaponFiredEvent
impl Send for SWeaponFiredEvent
impl Sync for SWeaponFiredEvent
impl Unpin for SWeaponFiredEvent
impl UnwindSafe for SWeaponFiredEvent
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