| 7 | IMPLEMENT(Define_Max); |
| 8 | |
| 9 | bool Define_Max::execute(aithread &thread) const |
| 10 | { |
| 11 | // Retrieve parameters |
| 12 | BYTE bCount; |
| 13 | WORD wType; |
| 14 | thread.readTuple( std::tie(bCount, wType) ); |
| 15 | |
| 16 | if ( wType < UnitTypes::None ) |
| 17 | MainController.bDefineMax[wType] = bCount; |
| 18 | |
| 19 | // Save debug info and return |
| 20 | thread.saveDebug(Text::Green, this->getOpcode(), "%u %s", bCount, AISCRIPT::getUnitName(wType) ); |
| 21 | return true; |
| 22 | } |
nothing calls this directly
no test coverage detected