Blizzard / s2client-api

StarCraft II Client - C++ library supported on Windows, Linux and Mac designed for building scripted bots and research using the SC2API.
MIT License
1.66k stars 281 forks source link

replays bug? #242

Closed ayu-mail closed 6 years ago

ayu-mail commented 6 years ago

The following code captures the SCV production record of more than 800, in fact less than 100, testing multiple replays of a wide range, the SCV has this problem, other unit types are not.

void OnUnitCreated(const sc2::Unit* unit)
{
    std::cout << UnitTypeToName(unit->unit_type)  << std::endl;
}
k-macmillan commented 6 years ago

OnUnitCreated() is called when SCVs exit Refineries.

ayu-mail commented 6 years ago

Thank you very much