#include <stateprovider.h>
Public Member Functions | |
| void | restoreLevelState (Resources::Level *level) |
| void | restoreCurrentLevelState (Resources::Level *level) |
| void | restoreLocationState (Resources::Level *level, Resources::Location *location) |
| void | restoreCurrentLocationState (Resources::Level *level, Resources::Location *location) |
| void | restoreGlobalState (Resources::Level *level) |
| void | saveLevelState (Resources::Level *level) |
| void | saveCurrentLevelState (Resources::Level *level) |
| void | saveLocationState (Resources::Level *level, Resources::Location *location) |
| void | saveCurrentLocationState (Resources::Level *level, Resources::Location *location) |
| void | saveGlobalState (Resources::Level *level) |
| void | readStateFromStream (StateReadStream *stream, uint saveVersion) |
| void | writeStateToStream (Common::WriteStream *stream) |
| void | clear () |
Static Public Attributes | |
| static const uint | kMinSaveVersion = 6 |
| static const uint | kSaveVersion = 13 |
Resource state provider.
Maintains a serialized version of the state of the resource trees.
| void Stark::StateProvider::readStateFromStream | ( | StateReadStream * | stream, |
| uint | saveVersion | ||
| ) |
Replace the current states by those read from the stream
| void Stark::StateProvider::writeStateToStream | ( | Common::WriteStream * | stream | ) |
Write the states in the store to a stream
| void Stark::StateProvider::clear | ( | ) |
Clear all the state, effectively preparing to start a new game