 386d58b586
			
		
	
	
		386d58b586
		
	
	
	
	
		
			
			git-svn-id: http://mc-server.googlecode.com/svn/trunk@3 0a769ca7-a7f5-676a-18bf-c427514a06d6
		
			
				
	
	
		
			22 lines
		
	
	
		
			443 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			443 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #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;
 | |
| }; |