pub struct AttackContext {Show 18 fields
pub attacker_slot: u8,
pub defender_slot: Option<u8>,
pub attack_type: AttackType,
pub trigger_card: Option<CardId>,
pub trigger_instance_id: Option<CardInstanceId>,
pub damage: i32,
pub counter_allowed: bool,
pub counter_played: bool,
pub counter_power: i32,
pub damage_modifiers: Vec<DamageModifier>,
pub next_modifier_id: u32,
pub last_damage_event_id: Option<u32>,
pub auto_damage_enqueued: bool,
pub battle_damage_applied: bool,
pub step: AttackStep,
pub decl_window_done: bool,
pub trigger_window_done: bool,
pub damage_window_done: bool,
}Fields§
§attacker_slot: u8§defender_slot: Option<u8>§attack_type: AttackType§trigger_card: Option<CardId>§trigger_instance_id: Option<CardInstanceId>§damage: i32§counter_allowed: bool§counter_played: bool§counter_power: i32§damage_modifiers: Vec<DamageModifier>§next_modifier_id: u32§last_damage_event_id: Option<u32>§auto_damage_enqueued: bool§battle_damage_applied: bool§step: AttackStep§decl_window_done: bool§trigger_window_done: bool§damage_window_done: boolTrait Implementations§
Source§impl Clone for AttackContext
impl Clone for AttackContext
Source§fn clone(&self) -> AttackContext
fn clone(&self) -> AttackContext
Returns a duplicate 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 AttackContext
impl Debug for AttackContext
Source§impl<'de> Deserialize<'de> for AttackContext
impl<'de> Deserialize<'de> for AttackContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for AttackContext
impl Hash for AttackContext
Auto Trait Implementations§
impl Freeze for AttackContext
impl RefUnwindSafe for AttackContext
impl Send for AttackContext
impl Sync for AttackContext
impl Unpin for AttackContext
impl UnwindSafe for AttackContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more