summaryrefslogtreecommitdiffstats
path: root/source/cReferenceManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/cReferenceManager.h')
-rw-r--r--source/cReferenceManager.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/source/cReferenceManager.h b/source/cReferenceManager.h
new file mode 100644
index 000000000..397527de1
--- /dev/null
+++ b/source/cReferenceManager.h
@@ -0,0 +1,22 @@
+#pragma once
+
+#include <list>
+
+class cEntity;
+class cReferenceManager
+{
+public:
+ enum ENUM_REFERENCE_MANAGER_TYPE
+ {
+ RFMNGR_REFERENCERS,
+ RFMNGR_REFERENCES,
+ };
+ cReferenceManager( ENUM_REFERENCE_MANAGER_TYPE a_Type );
+ ~cReferenceManager();
+
+ void AddReference( cEntity*& a_EntityPtr );
+ void Dereference( cEntity*& a_EntityPtr );
+private:
+ ENUM_REFERENCE_MANAGER_TYPE m_Type;
+ std::list< cEntity** > m_References;
+}; \ No newline at end of file