OpenTTD GameScript API 20241220-master-g59680867c3
|
Class to switch current mode to Test Mode. More...
#include <script_testmode.hpp>
Public Member Functions | |
GSTestMode () | |
Creating instance of this class switches the build mode to Testing. | |
Class to switch current mode to Test Mode.
If you create an instance of this class, the mode will be switched to Testing. The original mode is stored and recovered from when ever the instance is destroyed. In Test mode all the commands you execute aren't really executed. The system only checks if it would be able to execute your requests, and what the cost would be.
GSTestMode::GSTestMode | ( | ) |
Creating instance of this class switches the build mode to Testing.