Enum sc2::SpatialAction
[−]
[src]
pub enum SpatialAction { UnitCommand { ability: Ability, target: Option<SpatialUnitCommandTarget>, queued: bool, }, CameraMove { center_minimap: Vector2<i32>, }, SelectPoint { select_screen: Vector2<i32>, select_type: PointSelectType, }, SelectRect { select_screen: Vec<Rect2I>, select_add: bool, }, }
feature layer action
Variants
UnitCommand
issue a feature layer unit command
Fields of UnitCommand
ability: Ability | ability to invoke |
target: Option<SpatialUnitCommandTarget> | target of command |
queued: bool | whether this action should replace or queue behind other actions |
CameraMove
move the camera to a new location
Fields of CameraMove
center_minimap: Vector2<i32> | minimap location |
SelectPoint
select a point on the screen
Fields of SelectPoint
select_screen: Vector2<i32> | point in screen coordinates |
select_type: PointSelectType | point selection type |
SelectRect
select a rectangle on the screen
Fields of SelectRect
select_screen: Vec<Rect2I> | rectangle in screen coordinates |
select_add: bool | whether selection is additive |
Trait Implementations
impl Debug for SpatialAction
[src]
impl Clone for SpatialAction
[src]
fn clone(&self) -> SpatialAction
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more