Skip to content

cpp-sc2/codegen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

81066f1 · Jan 3, 2025
Jan 3, 2025
Jan 3, 2025
Aug 7, 2022
Jan 3, 2025
Jan 3, 2025
Aug 6, 2022
May 31, 2020
Nov 8, 2022
May 3, 2020
Mar 13, 2020
Jan 3, 2025
May 11, 2020
Jan 3, 2025
Jan 3, 2025

Repository files navigation

Codegen

CI Status Code Climate Test Coverage

About

Code generation utility for StarCraft II. Produces list of type IDs taken from stableid.json for cpp-sc2 API.

Requirements

  • OS X (feel free to send a PR to support other platforms).
  • nodejs >= 23.5.
  • Starcraft II installation.

Usage

# Install dependencies.
$ npm install

# Generate the code using installed game.
$ npm start "/Users/alkurbatov/Library/Application Support/Blizzard/StarCraft II/stableid.json"

# Generate the code using one of saved ID files.
$ npm start ./assets/4.10.4-stableid.json

# Run tests
$ npm test

License

Copyright (c) 2020-2025

Licensed under the GPL 3.0 license.