| 6 | IMPLEMENT(Build); |
| 7 | |
| 8 | bool Build::execute(aithread &thread) const |
| 9 | { |
| 10 | // Retrieve parameters |
| 11 | BYTE bBuildCount, bPriority; |
| 12 | WORD wUnitType; |
| 13 | thread.readTuple( std::tie(bBuildCount, wUnitType, bPriority) ); |
| 14 | |
| 15 | //if ( bBuildCount <= 30 && wBuildType < UnitTypes::None ) |
| 16 | // this->pTown->MacroManagerSet(MACRO_BUILD, bBuildCount, wBuildType, bPriority, false); |
| 17 | |
| 18 | // Save debug info and return |
| 19 | thread.saveDebug(Text::Red, this->getOpcode(), "%u %s %u", bBuildCount, AISCRIPT::getUnitName(wUnitType), bPriority); |
| 20 | return true; |
| 21 | } |
nothing calls this directly
no test coverage detected