pub trait AuraOps {
Show 38 methods
// Required methods
fn with_resolved_target(
&mut self,
target: EnemyIdx,
apply: impl FnOnce(&mut Self),
);
fn now(&self) -> SimTime;
fn apply_aura(&mut self, local: u8);
fn apply_owner_aura(&mut self, local: u8);
fn apply_aura_with_duration(&mut self, local: u8, duration_ms: u32);
fn apply_aura_with_rolling_multiplier(&mut self, local: u8, multiplier: f64);
fn apply_pet_aura_with_duration(&mut self, local: u8, duration_ms: u32);
fn apply_aura_n(&mut self, local: u8, n: i32);
fn add_aura_stack(&mut self, local: u8);
fn add_owner_aura_stack(&mut self, local: u8);
fn add_residual_damage(&mut self, local: u8, amount: f64);
fn residual_damage_remaining(&self, local: u8) -> f64;
fn accumulate_damage(&mut self, local: u8, amount: f64);
fn accumulate_owner_damage(&mut self, local: u8, amount: f64);
fn take_accumulated_damage(&mut self, local: u8) -> f64;
fn expire_aura(&mut self, local: u8);
fn expire_owner_aura(&mut self, local: u8);
fn consume_aura(&mut self, local: u8) -> bool;
fn consume_aura_stack(&mut self, local: u8) -> bool;
fn consume_owner_aura_stack(&mut self, local: u8) -> bool;
fn consume_aura_stacks(&mut self, local: u8, count: i32) -> i32;
fn refresh_aura_snapshot_multiplier(
&mut self,
local: u8,
multiplier: f64,
) -> bool;
fn extend_aura(&mut self, local: u8, ms: u32);
fn reduce_aura(&mut self, local: u8, ms: u32);
fn is_aura_active(&self, local: u8) -> bool;
fn is_owner_aura_active(&self, local: u8) -> bool;
fn aura_stacks(&self, local: u8) -> i32;
fn aura_remaining_ms(&self, local: u8) -> Option<u32>;
fn flat_periodic_damage_remaining(&self, local: u8) -> Option<f64>;
fn aura_local_index(&self, aura_id: u32) -> Option<u8>;
fn apply_aura_id(&mut self, aura_id: u32);
fn apply_aura_id_n(&mut self, aura_id: u32, n: i32);
fn add_aura_stack_id(&mut self, aura_id: u32);
fn expire_aura_id(&mut self, aura_id: u32);
fn is_aura_active_id(&self, aura_id: u32) -> bool;
fn aura_stacks_id(&self, aura_id: u32) -> i32;
fn flat_periodic_damage_remaining_id(&self, aura_id: u32) -> Option<f64>;
fn take_aura_stacks_id(&mut self, aura_id: u32) -> i32;
}Expand description
Aura lifecycle and aura-owned accumulator operations.
Required Methods§
fn with_resolved_target( &mut self, target: EnemyIdx, apply: impl FnOnce(&mut Self), )
fn now(&self) -> SimTime
fn apply_aura(&mut self, local: u8)
fn apply_owner_aura(&mut self, local: u8)
fn apply_aura_with_duration(&mut self, local: u8, duration_ms: u32)
fn apply_aura_with_rolling_multiplier(&mut self, local: u8, multiplier: f64)
fn apply_pet_aura_with_duration(&mut self, local: u8, duration_ms: u32)
fn apply_aura_n(&mut self, local: u8, n: i32)
fn add_aura_stack(&mut self, local: u8)
fn add_owner_aura_stack(&mut self, local: u8)
fn add_residual_damage(&mut self, local: u8, amount: f64)
fn residual_damage_remaining(&self, local: u8) -> f64
fn accumulate_damage(&mut self, local: u8, amount: f64)
fn accumulate_owner_damage(&mut self, local: u8, amount: f64)
fn take_accumulated_damage(&mut self, local: u8) -> f64
fn expire_aura(&mut self, local: u8)
fn expire_owner_aura(&mut self, local: u8)
fn consume_aura(&mut self, local: u8) -> bool
fn consume_aura_stack(&mut self, local: u8) -> bool
fn consume_owner_aura_stack(&mut self, local: u8) -> bool
fn consume_aura_stacks(&mut self, local: u8, count: i32) -> i32
fn refresh_aura_snapshot_multiplier( &mut self, local: u8, multiplier: f64, ) -> bool
fn extend_aura(&mut self, local: u8, ms: u32)
fn reduce_aura(&mut self, local: u8, ms: u32)
fn is_aura_active(&self, local: u8) -> bool
fn is_owner_aura_active(&self, local: u8) -> bool
fn aura_stacks(&self, local: u8) -> i32
fn aura_remaining_ms(&self, local: u8) -> Option<u32>
fn flat_periodic_damage_remaining(&self, local: u8) -> Option<f64>
fn aura_local_index(&self, aura_id: u32) -> Option<u8>
fn apply_aura_id(&mut self, aura_id: u32)
fn apply_aura_id_n(&mut self, aura_id: u32, n: i32)
fn add_aura_stack_id(&mut self, aura_id: u32)
fn expire_aura_id(&mut self, aura_id: u32)
fn is_aura_active_id(&self, aura_id: u32) -> bool
fn aura_stacks_id(&self, aura_id: u32) -> i32
fn flat_periodic_damage_remaining_id(&self, aura_id: u32) -> Option<f64>
fn take_aura_stacks_id(&mut self, aura_id: u32) -> i32
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.