pub struct ProjectileDef {Show 17 fields
pub kind: ProjectileKind,
pub behavior: ShotBehavior,
pub spawn: LocalBox,
pub vel_x: i32,
pub vel_y: i32,
pub gravity: i32,
pub lifetime: u16,
pub damage: i32,
pub chip: i32,
pub hitstun: u8,
pub blockstun: u8,
pub hitstop: u8,
pub pushback: i32,
pub hitbox: LocalBox,
pub blast: Option<LocalBox>,
pub level: HitLevel,
pub knockdown: bool,
}Fields§
§kind: ProjectileKind§behavior: ShotBehavior§spawn: LocalBoxSpawn offset from the owner’s origin, facing-relative.
vel_x: i32§vel_y: i32§gravity: i32§lifetime: u16§damage: i32§chip: i32§hitstun: u8§blockstun: u8§hitstop: u8§pushback: i32§hitbox: LocalBox§blast: Option<LocalBox>Hitbox used when a planted crystal detonates.
level: HitLevel§knockdown: boolTrait Implementations§
Source§impl Clone for ProjectileDef
impl Clone for ProjectileDef
Source§fn clone(&self) -> ProjectileDef
fn clone(&self) -> ProjectileDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProjectileDef
Source§impl Debug for ProjectileDef
impl Debug for ProjectileDef
impl Eq for ProjectileDef
Source§impl Hash for ProjectileDef
impl Hash for ProjectileDef
Source§impl PartialEq for ProjectileDef
impl PartialEq for ProjectileDef
impl StructuralPartialEq for ProjectileDef
Auto Trait Implementations§
impl Freeze for ProjectileDef
impl RefUnwindSafe for ProjectileDef
impl Send for ProjectileDef
impl Sync for ProjectileDef
impl Unpin for ProjectileDef
impl UnsafeUnpin for ProjectileDef
impl UnwindSafe for ProjectileDef
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