Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
774 B

  1. //========= Copyright � 1996-2007, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #ifndef SINGLEPLAYERSHAREDMEMORY_H
  9. #define SINGLEPLAYERSHAREDMEMORY_H
  10. #if defined( _WIN32 )
  11. #pragma once
  12. #endif
  13. #include "basetypes.h"
  14. #include "ispsharedmemory.h"
  15. #include "tier1/utlvector.h"
  16. class CSPSharedMemory;
  17. class CSPSharedMemoryManager
  18. {
  19. public:
  20. ISPSharedMemory *GetSharedMemory( const char *handle, int ent_num );
  21. ~CSPSharedMemoryManager( void );
  22. private:
  23. CUtlVector<CSPSharedMemory *> m_SharedSpaces;
  24. friend class CSPSharedMemory;
  25. };
  26. extern CSPSharedMemoryManager *g_pSinglePlayerSharedMemoryManager;
  27. #endif // SINGLEPLAYERSHAREDMEMORY_H