Struct veloren_common::combat::AttackerInfo
source · pub struct AttackerInfo<'a> {
pub entity: Entity,
pub uid: Uid,
pub group: Option<&'a Group>,
pub energy: Option<&'a Energy>,
pub combo: Option<&'a Combo>,
pub inventory: Option<&'a Inventory>,
pub stats: Option<&'a Stats>,
pub mass: Option<&'a Mass>,
}
Fields§
§entity: Entity
§uid: Uid
§group: Option<&'a Group>
§energy: Option<&'a Energy>
§combo: Option<&'a Combo>
§inventory: Option<&'a Inventory>
§stats: Option<&'a Stats>
§mass: Option<&'a Mass>
Trait Implementations§
source§impl<'a> Clone for AttackerInfo<'a>
impl<'a> Clone for AttackerInfo<'a>
source§fn clone(&self) -> AttackerInfo<'a>
fn clone(&self) -> AttackerInfo<'a>
Returns a copy 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 From<AttackerInfo<'_>> for DamageContributor
impl From<AttackerInfo<'_>> for DamageContributor
source§fn from(attacker_info: AttackerInfo<'_>) -> Self
fn from(attacker_info: AttackerInfo<'_>) -> Self
Converts to this type from the input type.
impl<'a> Copy for AttackerInfo<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for AttackerInfo<'a>
impl<'a> Send for AttackerInfo<'a>
impl<'a> Sync for AttackerInfo<'a>
impl<'a> Unpin for AttackerInfo<'a>
impl<'a> UnwindSafe for AttackerInfo<'a>
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