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.

40 lines
1.1 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. // $NoKeywords: $
  8. //=============================================================================//
  9. #if !defined( EVENT_TEMPENTITY_TESTER_H )
  10. #define EVENT_TEMPENTITY_TESTER_H
  11. #ifdef _WIN32
  12. #pragma once
  13. #endif
  14. class CBaseTempEntity;
  15. //-----------------------------------------------------------------------------
  16. // Purpose: A server object that is used to test all registered temp entities
  17. //-----------------------------------------------------------------------------
  18. class CTempEntTester : public CPointEntity
  19. {
  20. public:
  21. DECLARE_CLASS( CTempEntTester, CPointEntity );
  22. void Spawn( void );
  23. void Think( void );
  24. static CBaseEntity *Create( const Vector &vecOrigin, const QAngle &vecAngles, const char *lifetime, const char *single_te );
  25. private:
  26. // Current temp entity to test
  27. CBaseTempEntity *m_pCurrent;
  28. // Lifetime
  29. float m_fLifeTime;
  30. char m_szClass[ 64 ];
  31. };
  32. #endif // EVENT_TEMPENTITY_TESTER_H