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.

44 lines
1.1 KiB

  1. //===== Copyright � 1996-2005, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose : Singleton manager for spatial entities on the client
  4. //
  5. // $NoKeywords: $
  6. //===========================================================================//
  7. #ifndef SPATIALENTITYMGR_H
  8. #define SPATIALENTITYMGR_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "igamesystem.h"
  13. class C_SpatialEntity;
  14. //------------------------------------------------------------------------------
  15. // Purpose : Singleton manager for spatial entities on the client
  16. //------------------------------------------------------------------------------
  17. class CSpatialEntityMgr : public CAutoGameSystemPerFrame
  18. {
  19. // Inherited from IGameSystemPerFrame
  20. public:
  21. virtual char const *Name() { return "Spatial Entity Mgr"; }
  22. // Gets called each frame
  23. virtual void Update( float frametime );
  24. // Other public methods
  25. public:
  26. // Create, destroy spatial entity
  27. void AddSpatialEntity( C_SpatialEntity *pSpatialEntity );
  28. void RemoveSpatialEntity( C_SpatialEntity *pSpatialEntity );
  29. CUtlVector<C_SpatialEntity*> m_SpatialEntities;
  30. };
  31. #endif // SPATIALENTITYMGR_H