Enum sc2::observer::Event[][src]

pub enum Event {
    GameLoaded,
    GameStarted,
    GameEnded,
    UnitDestroyed(Rc<Unit>),
    UnitCreated(Rc<Unit>),
    UnitIdle(Rc<Unit>),
    UnitDetected(Rc<Unit>),
    UpgradeCompleted(Upgrade),
    BuildingCompleted(Rc<Unit>),
    NydusWormsDetected(u32),
    NukesDetected(u32),
    Step,
}

An event from the game.

Variants

Game has loaded - not called for fast restarts.

Game has started.

Game has ended.

A unit was destroyed.

A unit was created.

A unit does not have any orders.

A unit was detected.

An upgrade completed.

A unit finished constructing a building.

Number of nydus worms detected.

Number of nukes launched.

Step the agent or observer.

Trait Implementations

impl Debug for Event
[src]

Formats the value using the given formatter. Read more

impl Clone for Event
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for Event

impl !Sync for Event