ScummVM API documentation
Wintermute::SystemClassRegistry Class Reference

Public Types

typedef Common::HashMap< SystemClass *, SystemClass * > Classes
 
typedef Common::HashMap< AnsiString, SystemClass * > NameMap
 
typedef Common::HashMap< int, SystemClass * > IdMap
 
typedef Common::HashMap< void *, SystemInstance * > InstanceMap
 
typedef Common::HashMap< int, SystemInstance * > SavedInstanceMap
 

Public Member Functions

void registerClasses ()
 
bool enumInstances (SYS_INSTANCE_CALLBACK lpCallback, const char *className, void *lpData)
 
bool loadTable (BaseGame *Game, BasePersistenceManager *PersistMgr)
 
bool saveTable (BaseGame *Game, BasePersistenceManager *PersistMgr, bool quickSave)
 
bool loadInstances (BaseGame *Game, BasePersistenceManager *PersistMgr)
 
bool saveInstances (BaseGame *Game, BasePersistenceManager *PersistMgr, bool quickSave)
 
void * idToPointer (int classID, int instanceID)
 
bool getPointerID (void *pointer, int *classID, int *instanceID)
 
bool registerClass (SystemClass *classObj)
 
bool unregisterClass (SystemClass *classObj)
 
bool registerInstance (const char *className, void *instance)
 
bool unregisterInstance (const char *className, void *instance)
 
void dumpClasses (Common::WriteStream *stream)
 
int getNextID ()
 
void addInstanceToTable (SystemInstance *instance, void *pointer)
 

Static Public Member Functions

static SystemClassRegistrygetInstance ()
 

Public Attributes

bool _disabled
 
int _count
 
Classes _classes
 
NameMap _nameMap
 
IdMap _idMap
 
InstanceMap _instanceMap
 
SavedInstanceMap _savedInstanceMap
 

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