Struct boxcars::DamageState
source · pub struct DamageState {
pub tile_state: u8,
pub damaged: bool,
pub offender: ActorId,
pub ball_position: Vector3f,
pub direct_hit: bool,
pub unknown1: bool,
}
Fields§
§tile_state: u8
State of the dropshot tile (0 - undamaged, 1 - damaged, 2 - destroyed)
damaged: bool
True if damaged
offender: ActorId
Player actor that inflicted the damage
ball_position: Vector3f
Position of the ball at the time of the damage
direct_hit: bool
True for the dropshot tile that was hit by the ball (center tile of the damage area)
unknown1: bool
Trait Implementations§
source§impl Clone for DamageState
impl Clone for DamageState
source§fn clone(&self) -> DamageState
fn clone(&self) -> DamageState
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 DamageState
impl Debug for DamageState
source§impl PartialEq for DamageState
impl PartialEq for DamageState
source§fn eq(&self, other: &DamageState) -> bool
fn eq(&self, other: &DamageState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DamageState
impl Serialize for DamageState
impl Copy for DamageState
impl StructuralPartialEq for DamageState
Auto Trait Implementations§
impl Freeze for DamageState
impl RefUnwindSafe for DamageState
impl Send for DamageState
impl Sync for DamageState
impl Unpin for DamageState
impl UnwindSafe for DamageState
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