OpenTTD GameScript API: GSExecMode Class Reference

OpenTTD GameScript API 15.0-RC4

Public Member Functions
GSExecMode Class Reference

Class to switch current mode to Execute Mode. More...

`#include <script_execmode.hpp>`

Inheritance diagram for GSExecMode:

## Public Member Functions
| GSExecMode ()
| Creating instance of this class switches the build mode to Execute.

## Detailed Description

Class to switch current mode to Execute Mode.

If you create an instance of this class, the mode will be switched to Execute. The original mode is stored and recovered from when ever the instance is destroyed. In Execute mode all commands you do are executed for real.

## Constructor & Destructor Documentation

## ◆ GSExecMode()

GSExecMode::GSExecMode | ( |  | ) |

Creating instance of this class switches the build mode to Execute.

Note
  When the instance is destroyed, it restores the mode that was current when the instance was created!