Base class for all NewGRF storage arrays. More...
#include <newgrf_storage.h>
Public Member Functions | |
| virtual | ~BaseStorageArray () |
| Remove references to use. | |
| virtual void | ClearChanges (bool keep_changes)=0 |
| Clear the changes made since the last ClearChanges. | |
| virtual void | Store (uint pos, int32 value)=0 |
| Stores some value at a given position. | |
Base class for all NewGRF storage arrays.
Nothing fancy, only here so we have a generalised class to use.
Definition at line 21 of file newgrf_storage.h.
| virtual void BaseStorageArray::ClearChanges | ( | bool | keep_changes | ) | [pure virtual] |
Clear the changes made since the last ClearChanges.
This can be done in two ways:
| keep_changes | do we save or revert the changes since the last ClearChanges? |
Implemented in PersistentStorageArray< TYPE, SIZE >, TemporaryStorageArray< TYPE, SIZE >, and PersistentStorageArray< int32, 16 >.
| virtual void BaseStorageArray::Store | ( | uint | pos, | |
| int32 | value | |||
| ) | [pure virtual] |
Stores some value at a given position.
| pos | the position to write at | |
| value | the value to write |
Implemented in PersistentStorageArray< TYPE, SIZE >, TemporaryStorageArray< TYPE, SIZE >, and PersistentStorageArray< int32, 16 >.
1.7.1