Crate sc2 [] [src]

StarCraft II API for Rust

this API is intended to provide functionality similar to that of Blizzard and Google's StarCraft II API

Modules

data

contains useful data exposed through interfaces to the game instance

Structs

Agent

a wrapper around a player to mediate interactions with game instance

AgentBuilder

build an agent

AgentControl

controls given to an agent

Computer

a built-in AI opponent soma

ComputerBuilder

build a built-in AI opponent

Error

The Error type.

Launcher

launches game instances upon request

LauncherBuilder

builder used to create launcher

Melee

coordinates matches between the given players

MeleeBuilder

build a Melee coordinator

Observation

state of the game (changes every frame)

Enums

ErrorKind

The kind of an error.

GameEvent

an event from the game

UpdateScheme

update scheme for the agents to use

Traits

Player

contract for a player soma to obey

ResultExt

Additional methods for Result, for easy interaction with this crate.

Type Definitions

Result

Convenient wrapper around std::Result.