pub enum DemolishAttribute {
Fx(DemolishFx),
Extended(DemolishExtended),
}Expand description
Wrapper enum for different demolition attribute formats across Rocket League versions.
Rocket League changed the demolition data structure around September 2024 (v2.43+),
moving from DemolishFx to DemolishExtended. This enum provides a unified interface
for both formats.
Variants§
Fx(DemolishFx)
Extended(DemolishExtended)
Implementations§
Source§impl DemolishAttribute
impl DemolishAttribute
pub fn attacker_actor_id(&self) -> ActorId
pub fn victim_actor_id(&self) -> ActorId
pub fn attacker_velocity(&self) -> Vector3f
pub fn victim_velocity(&self) -> Vector3f
Trait Implementations§
Source§impl Clone for DemolishAttribute
impl Clone for DemolishAttribute
Source§fn clone(&self) -> DemolishAttribute
fn clone(&self) -> DemolishAttribute
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 DemolishAttribute
impl Debug for DemolishAttribute
Source§impl PartialEq for DemolishAttribute
impl PartialEq for DemolishAttribute
impl StructuralPartialEq for DemolishAttribute
Auto Trait Implementations§
impl Freeze for DemolishAttribute
impl RefUnwindSafe for DemolishAttribute
impl Send for DemolishAttribute
impl Sync for DemolishAttribute
impl Unpin for DemolishAttribute
impl UnsafeUnpin for DemolishAttribute
impl UnwindSafe for DemolishAttribute
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