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

issue a feature layer unit command

Fields of UnitCommand

ability to invoke

target of command

whether this action should replace or queue behind other actions

move the camera to a new location

Fields of CameraMove

minimap location

select a point on the screen

Fields of SelectPoint

point in screen coordinates

point selection type

select a rectangle on the screen

Fields of SelectRect

rectangle in screen coordinates

whether selection is additive

Trait Implementations

impl Debug for SpatialAction
[src]

[src]

Formats the value using the given formatter.

impl Clone for SpatialAction
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more