Struct VehicleDamageEvent
pub struct VehicleDamageEvent<'a> {
pub kind: &'a str,
pub damage: f32,
pub cancelled: bool,
}Expand description
What Hooks::vehicle_damage is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§kind: &'a str§damage: f32§cancelled: boolWhether the event is cancelled: by the game or an earlier listener, or by this one
setting it. Only a listener that receives cancelled events (#[listener(receive_cancelled)])
sees true, and setting it back to false lets the game’s behaviour run.
Auto Trait Implementations§
impl<'a> Freeze for VehicleDamageEvent<'a>
impl<'a> RefUnwindSafe for VehicleDamageEvent<'a>
impl<'a> Send for VehicleDamageEvent<'a>
impl<'a> Sync for VehicleDamageEvent<'a>
impl<'a> Unpin for VehicleDamageEvent<'a>
impl<'a> UnsafeUnpin for VehicleDamageEvent<'a>
impl<'a> UnwindSafe for VehicleDamageEvent<'a>
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