pub struct DemolishInfo {
pub time: f32,
pub seconds_remaining: i32,
pub frame: usize,
pub attacker: PlayerId,
pub victim: PlayerId,
pub attacker_velocity: Vector3f,
pub victim_velocity: Vector3f,
}Expand description
DemolishInfo struct represents data related to a demolition event in the game.
Demolition events occur when one player ‘demolishes’ or ‘destroys’ another by hitting them at a sufficiently high speed. This results in the demolished player being temporarily removed from play.
Fields§
§time: f32The exact game time (in seconds) at which the demolition event occurred.
seconds_remaining: i32The remaining time in the match when the demolition event occurred.
frame: usizeThe frame number at which the demolition occurred.
attacker: PlayerIdThe PlayerId of the player who initiated the demolition.
victim: PlayerIdThe PlayerId of the player who was demolished.
attacker_velocity: Vector3fThe velocity of the attacker at the time of demolition.
victim_velocity: Vector3fThe velocity of the victim at the time of demolition.
Trait Implementations§
Source§impl Clone for DemolishInfo
impl Clone for DemolishInfo
Source§fn clone(&self) -> DemolishInfo
fn clone(&self) -> DemolishInfo
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 DemolishInfo
impl Debug for DemolishInfo
Source§impl PartialEq for DemolishInfo
impl PartialEq for DemolishInfo
Source§impl Serialize for DemolishInfo
impl Serialize for DemolishInfo
impl StructuralPartialEq for DemolishInfo
Auto Trait Implementations§
impl Freeze for DemolishInfo
impl RefUnwindSafe for DemolishInfo
impl Send for DemolishInfo
impl Sync for DemolishInfo
impl Unpin for DemolishInfo
impl UnwindSafe for DemolishInfo
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