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.

43 lines
1.3 KiB

  1. //========= Copyright � 1996-2008, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Definition of the info_remarkable entity.
  4. // This entity is a quick and dirty hack to provide writers
  5. // with some kind of object that characters can remark upon.
  6. // It is not performant, because it relies upon each character
  7. // polling over each of these for visibility. A better approach
  8. // will be an object that is notified by the engine when it is within
  9. // a character's view.
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #ifndef INFOREMARKABLE_H
  14. #define INFOREMARKABLE_H
  15. #ifdef _WIN32
  16. #pragma once
  17. #endif
  18. #include "baseentity.h"
  19. #include "utllinkedlist.h"
  20. class CInfoRemarkable : public CPointEntity
  21. {
  22. public:
  23. DECLARE_CLASS( CInfoRemarkable, CPointEntity );
  24. DECLARE_DATADESC();
  25. typedef CUtlLinkedList< CInfoRemarkable * > tRemarkableList;
  26. static tRemarkableList *GetListOfAllThatIsRemarkable( void );
  27. ~CInfoRemarkable();
  28. void Spawn( void );
  29. inline void ResetCount( void ) { m_iTimesRemarkedUpon = 0; } // reset the number of times commented upon (eg at map restart)
  30. inline const char *GetRemarkContext( void ) const
  31. { return m_szRemarkContext.ToCStr(); }
  32. int m_iTimesRemarkedUpon;
  33. //FIX protected:
  34. string_t m_szRemarkContext;
  35. };
  36. #endif