| 7 | Wait_Build wait_buildstart_impl(AISCRIPT::Enum::WAIT_BUILDSTART); |
| 8 | |
| 9 | bool Wait_Build::execute(aithread &thread) const |
| 10 | { |
| 11 | // Parameters |
| 12 | BYTE bCount; |
| 13 | WORD wType; |
| 14 | thread.readTuple( std::tie(bCount, wType) ); |
| 15 | |
| 16 | // debug |
| 17 | thread.saveDebug(Text::Red, this->getOpcode(), "%u %s", bCount, AISCRIPT::getUnitName(wType) ); |
| 18 | |
| 19 | // stuff |
| 20 | if ( wType == Broodwar->self()->getRace().getWorker() ) |
| 21 | { |
| 22 | // TOWN STUFF |
| 23 | } |
| 24 | |
| 25 | //if ( // AI_BuildSomething >= bCount ) |
| 26 | //return thread.noretry(); |
| 27 | |
| 28 | // Debug and return |
| 29 | return thread.retry(); |
| 30 | } |