pub struct UnitOrder {
pub ability: AbilityId,
pub target: Target,
pub progress: f32,
}Expand description
Order given to unit. All current orders of unit stored in orders field.
Fields§
§ability: AbilityIdAbility unit is using.
target: TargetTarget of unit’s ability.
progress: f32Progress of train abilities. Value in range from 0 to 1.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnitOrder
impl RefUnwindSafe for UnitOrder
impl Send for UnitOrder
impl Sync for UnitOrder
impl Unpin for UnitOrder
impl UnwindSafe for UnitOrder
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