| 7 | Check_Transports transports_off_impl(AISCRIPT::Enum::TRANSPORTS_OFF); |
| 8 | |
| 9 | bool Check_Transports::execute(aithread &thread) const |
| 10 | { |
| 11 | if ( this->getOpcode() == AISCRIPT::Enum::TRANSPORTS_OFF ) // off |
| 12 | MainController.setFlags(CONTROLLER_TRANSPORTS_OFF); |
| 13 | else // on |
| 14 | MainController.clearFlags(CONTROLLER_TRANSPORTS_OFF); |
| 15 | |
| 16 | // Debug and return |
| 17 | thread.saveDebug(Text::Green, this->getOpcode()); |
| 18 | return true; |
| 19 | } |
nothing calls this directly
no test coverage detected