pub struct DamageProfile {
pub em: f64,
pub explosive: f64,
pub kinetic: f64,
pub thermal: f64,
}Expand description
How incoming damage is split over the four damage types. Only the ratio matters; the calculation scales the four to add up to one.
Fields§
§em: f64EM damage.
explosive: f64Explosive damage.
kinetic: f64Kinetic damage.
thermal: f64Thermal damage.
Trait Implementations§
Source§impl Clone for DamageProfile
impl Clone for DamageProfile
impl Copy for DamageProfile
Source§impl Debug for DamageProfile
impl Debug for DamageProfile
Source§impl Default for DamageProfile
impl Default for DamageProfile
Source§impl<'de> Deserialize<'de> for DamageProfile
impl<'de> Deserialize<'de> for DamageProfile
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 PartialEq for DamageProfile
impl PartialEq for DamageProfile
Source§impl Serialize for DamageProfile
impl Serialize for DamageProfile
impl StructuralPartialEq for DamageProfile
Auto Trait Implementations§
impl Freeze for DamageProfile
impl RefUnwindSafe for DamageProfile
impl Send for DamageProfile
impl Sync for DamageProfile
impl Unpin for DamageProfile
impl UnsafeUnpin for DamageProfile
impl UnwindSafe for DamageProfile
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