Class for pooled persistent storage of data. More...
#include <newgrf_storage.h>
Public Member Functions | |
PersistentStorage (const uint32 new_grfid) | |
We don't want GCC to zero our struct! It already is zeroed and has an index! | |
~PersistentStorage () | |
Free the memory used by the persistent storage. | |
Data Fields | |
uint32 | grfid |
GRFID associated to this persistent storage. A value of zero means "default". |
Class for pooled persistent storage of data.
On ClearChanges that data is always zero-ed.
Definition at line 196 of file newgrf_storage.h.
PersistentStorage::~PersistentStorage | ( | ) | [inline] |
Free the memory used by the persistent storage.
Definition at line 207 of file newgrf_storage.h.
References free(), and PersistentStorageArray< int32, 16 >::prev_storage.