pub struct AttackParameters {Show 18 fields
pub ammo_categories: &'static [&'static str],
pub ammo_consumption_modifier: f32,
pub ammo_type: LuaAny,
pub cooldown: f32,
pub damage_modifier: f32,
pub fire_penalty: f32,
pub health_penalty: f32,
pub min_attack_distance: f32,
pub min_range: f32,
pub movement_slow_down_cooldown: f32,
pub movement_slow_down_factor: f64,
pub range: f32,
pub range_mode: RangeMode,
pub rotate_penalty: f32,
pub threatening_asteroid_penalty: f32,
pub turn_range: f32,
pub type: AttackParametersType,
pub warmup: u32,
}Fields§
§ammo_categories: &'static [&'static str]§ammo_consumption_modifier: f32§ammo_type: LuaAny§cooldown: f32§damage_modifier: f32§fire_penalty: f32§health_penalty: f32§min_attack_distance: f32§min_range: f32§movement_slow_down_cooldown: f32§movement_slow_down_factor: f64§range: f32§range_mode: RangeMode§rotate_penalty: f32§threatening_asteroid_penalty: f32§turn_range: f32§type: AttackParametersType§warmup: u32Trait Implementations§
Source§impl Clone for AttackParameters
impl Clone for AttackParameters
Source§fn clone(&self) -> AttackParameters
fn clone(&self) -> AttackParameters
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 AttackParameters
Source§impl Debug for AttackParameters
impl Debug for AttackParameters
Source§impl Default for AttackParameters
impl Default for AttackParameters
Source§fn default() -> AttackParameters
fn default() -> AttackParameters
Returns the “default value” for a type. Read more
Source§impl PartialEq for AttackParameters
impl PartialEq for AttackParameters
impl StructuralPartialEq for AttackParameters
Auto Trait Implementations§
impl Freeze for AttackParameters
impl RefUnwindSafe for AttackParameters
impl Send for AttackParameters
impl Sync for AttackParameters
impl Unpin for AttackParameters
impl UnsafeUnpin for AttackParameters
impl UnwindSafe for AttackParameters
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