pub struct FightAction {
pub acting_id: i64,
pub other_new_life: i64,
pub action: FightActionType,
}Expand description
One round (action) in a fight. This is mostly just one attack
Fields§
§acting_id: i64The id of the fighter, that does the action
other_new_life: i64The new current life of the fighter, that was hit. Note that this may be 0 for actions, like spawning minions, that dont have a target and thus no target health.
action: FightActionTypeThe action, that the active side does
Trait Implementations§
Source§impl Clone for FightAction
impl Clone for FightAction
Source§fn clone(&self) -> FightAction
fn clone(&self) -> FightAction
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 FightAction
impl Debug for FightAction
Source§impl<'de> Deserialize<'de> for FightAction
impl<'de> Deserialize<'de> for FightAction
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 Serialize for FightAction
impl Serialize for FightAction
impl Copy for FightAction
Auto Trait Implementations§
impl Freeze for FightAction
impl RefUnwindSafe for FightAction
impl Send for FightAction
impl Sync for FightAction
impl Unpin for FightAction
impl UnwindSafe for FightAction
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