28 #ifndef WINTERMUTE_SYSCLASS_H 29 #define WINTERMUTE_SYSCLASS_H 31 #include "engines/wintermute/persistent.h" 32 #include "engines/wintermute/dctypes.h" 33 #include "common/hashmap.h" 34 #include "common/func.h" 35 #include "common/stream.h" 40 class BasePersistenceManager;
46 template<
typename T>
struct Hash;
49 uint operator()(
void *val)
const {
50 return (uint)((size_t)val);
56 return (uint)((size_t)val);
70 int getNumInstances();
71 bool removeInstance(
void *instance);
72 SystemInstance *addInstance(
void *instance,
int id,
int savedId = -1);
73 bool removeAllInstances();
75 int getInstanceID(
void *pointer);
76 void *idToPointer(
int savedID);
85 int getSavedID()
const {
89 bool isPersistent()
const {
103 void instanceCallback(SYS_INSTANCE_CALLBACK lpCallback,
void *lpData);
105 void resetSavedIDs();
121 Instances _instances;
124 InstanceMap _instanceMap;
Definition: base_game.h:76
Definition: base_persistence_manager.h:56
Definition: sys_class.h:65
Definition: algorithm.h:29
Definition: sys_instance.h:35
Definition: achievements_tables.h:27