Skip to content

StarCraft II Client C++ library, proud fork of Blizzard/s2client-api.

License

Notifications You must be signed in to change notification settings

cpp-sc2/cpp-sc2

Repository files navigation

cpp-sc2

GitHub C++17 Build Status Join the chat in Discord: https://discord.gg/YurYAgHRSw

The StarCraft II API provides access to in-game state observation and unit control. The API is a wrapper around protobuf defined protocol over a websocket connection.
While it's possible to write directly to the protocol, this library provides a C++ and class-based abstraction.

Documentation

Precompiled Libraries

You can download precompiled libraries for Windows and OS X here.

Support

Have questions but don't want to create an issue? Join the unofficial Starcraft II AI Discord server (Invite Link). Questions about this repository can be asked in the text channel #cpp.
Also, please consider to support this project on Boosty. Support of the project allows to make releases more often and implement new features for developers.

Building the project

This library uses CMake to generate project files. It builds with Visual Studio on Windows and Makefiles on the other platforms. It relies on the following contrib packages:

  1. Civetweb
  2. Protobuf
  3. SDL (optional)

Follow the instructions for submodules and building in docs/building.md.

Additional Maps

This repository only comes with a few maps for testing. Additional maps can be found here.

Contributing

Please, read the detailed contributing guide before creating pull-requests to the project. It can save you a lot of time.