28 #ifndef WINTERMUTE_SYSCLASSREGISTRY_H 29 #define WINTERMUTE_SYSCLASSREGISTRY_H 31 #include "engines/wintermute/wintypes.h" 32 #include "engines/wintermute/dctypes.h" 33 #include "engines/wintermute/system/sys_class.h" 34 #include "common/hashmap.h" 35 #include "common/hash-str.h" 36 #include "common/func.h" 37 #include "common/stream.h" 44 template<
typename T>
struct Hash;
47 return (uint)((size_t)val);
56 class BasePersistenceManager;
60 void unregisterClasses();
62 void registerClasses();
64 void register3DClasses();
71 bool enumInstances(SYS_INSTANCE_CALLBACK lpCallback,
const char *className,
void *lpData);
76 void *idToPointer(
int classID,
int instanceID);
77 bool getPointerID(
void *pointer,
int *classID,
int *instanceID);
80 bool registerInstance(
const char *className,
void *instance);
81 bool unregisterInstance(
const char *className,
void *instance);
99 InstanceMap _instanceMap;
102 SavedInstanceMap _savedInstanceMap;
Definition: base_game.h:76
Definition: base_persistence_manager.h:56
Definition: sys_class.h:65
Definition: sys_class_registry.h:59
Definition: algorithm.h:29
Definition: sys_instance.h:35
Definition: achievements_tables.h:27