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
GameLoaded
Game has loaded - not called for fast restarts.
GameStarted
Game has started.
GameEnded
Game has ended.
UnitDestroyed(Rc<Unit>)
A unit was destroyed.
UnitCreated(Rc<Unit>)
A unit was created.
UnitIdle(Rc<Unit>)
A unit does not have any orders.
UnitDetected(Rc<Unit>)
A unit was detected.
UpgradeCompleted(Upgrade)
An upgrade completed.
BuildingCompleted(Rc<Unit>)
A unit finished constructing a building.
NydusWormsDetected(u32)
Number of nydus worms detected.
NukesDetected(u32)
Number of nukes launched.
Step
Step the agent or observer.
Trait Implementations
impl Debug for Event
[src]
impl Debug for Event
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Event
[src]
impl Clone for Event