pub struct Effect {
pub id: EffectId,
pub positions: Vec<Point2>,
pub alliance: Alliance,
pub owner: u32,
pub radius: f32,
}
Expand description
There are different effects in SC2, some of them can harm your units, so take them into account then microing.
All effects stored in state.observation.raw.effects.
Fields§
§id: EffectId
Type of the effect.
positions: Vec<Point2>
Positions covered by this effect.
alliance: Alliance
Is this effect yours or opponent’s.
owner: u32
Player id of effect’s owner.
radius: f32
Additional radius covered by effect around every it’s position.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Effect
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync for Effect
impl Unpin for Effect
impl UnwindSafe for Effect
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