pub struct SingleAttack {
unit: UnitType,
player_id: PlayerId,
current_position: [usize; 2],
target_position: [usize; 2],
damage: i64,
}Fields§
§unit: UnitType§player_id: PlayerId§current_position: [usize; 2]§target_position: [usize; 2]§damage: i64can be negative to represent healing
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SingleAttack
impl RefUnwindSafe for SingleAttack
impl Send for SingleAttack
impl Sync for SingleAttack
impl Unpin for SingleAttack
impl UnwindSafe for SingleAttack
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