Base class for all persistent NewGRF storage arrays.
More...
#include <newgrf_storage.h>
|
| static void | SwitchMode (PersistentStorageMode mode, bool ignore_prev_mode=false) |
| | Clear temporary changes made since the last call to SwitchMode, and set whether subsequent changes shall be persistent or temporary. More...
|
| |
|
|
uint32 | grfid |
| | GRFID associated to this persistent storage. A value of zero means "default".
|
| |
|
byte | feature |
| | NOSAVE: Used to identify in the owner of the array in debug output.
|
| |
|
TileIndex | tile |
| | NOSAVE: Used to identify in the owner of the array in debug output.
|
| |
|
|
static bool | gameloop |
| |
|
static bool | command |
| |
|
static bool | testmode |
| |
Base class for all persistent NewGRF storage arrays.
Nothing fancy, only here so we have a generalised access to the virtual methods.
Definition at line 34 of file newgrf_storage.h.
◆ SwitchMode()
| void BasePersistentStorageArray::SwitchMode |
( |
PersistentStorageMode |
mode, |
|
|
bool |
ignore_prev_mode = false |
|
) |
| |
|
static |
Clear temporary changes made since the last call to SwitchMode, and set whether subsequent changes shall be persistent or temporary.
- Parameters
-
| mode | Mode switch affecting temporary/persistent changes. |
| ignore_prev_mode | Disable some sanity checks for exceptional call circumstances. |
Definition at line 57 of file newgrf_storage.cpp.
References PSM_ENTER_GAMELOOP.
The documentation for this struct was generated from the following files: