ScummVM API documentation
Stark::StateProvider Class Reference

#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
 

Detailed Description

Resource state provider.

Maintains a serialized version of the state of the resource trees.

Member Function Documentation

◆ readStateFromStream()

void Stark::StateProvider::readStateFromStream ( StateReadStream stream,
uint  saveVersion 
)

Replace the current states by those read from the stream

◆ writeStateToStream()

void Stark::StateProvider::writeStateToStream ( Common::WriteStream stream)

Write the states in the store to a stream

◆ clear()

void Stark::StateProvider::clear ( )

Clear all the state, effectively preparing to start a new game


The documentation for this class was generated from the following file: