pub enum Attack {
MeleeWeaponAttack {
name: String,
modifier: i32,
reach: Option<i32>,
target_type: TargetType,
damage: DieStat,
damage_type: DamageType,
description: String,
},
RangedWeaponAttack {
name: String,
modifier: i32,
range: Option<Range>,
target_type: TargetType,
damage: DieStat,
damage_type: DamageType,
description: String,
},
MeleeOrRangedWeaponAttack {
name: String,
modifier: i32,
reach: Option<i32>,
range: Option<Range>,
target_type: TargetType,
damage: DieStat,
damage_type: DamageType,
description: String,
},
MeleeSpellAttack {
name: String,
modifier: i32,
reach: Option<i32>,
target_type: TargetType,
damage: DieStat,
damage_type: DamageType,
description: String,
},
RangedSpellAttack {
name: String,
modifier: i32,
range: Option<Range>,
target_type: TargetType,
damage: DieStat,
damage_type: DamageType,
description: String,
},
}Variants§
MeleeWeaponAttack
RangedWeaponAttack
MeleeOrRangedWeaponAttack
MeleeSpellAttack
RangedSpellAttack
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Attack
impl<'de> Deserialize<'de> for Attack
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
impl Eq for Attack
impl StructuralPartialEq for Attack
Auto Trait Implementations§
impl Freeze for Attack
impl RefUnwindSafe for Attack
impl Send for Attack
impl Sync for Attack
impl Unpin for Attack
impl UnsafeUnpin for Attack
impl UnwindSafe for Attack
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