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<DamageState> for DamageState
impl PartialEq<DamageState> 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 ==
.