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.

41 lines
1.0 KiB

  1. //====== Copyright Valve Corporation, All rights reserved. =================
  2. //
  3. // Global object for storing gameplay hint strings for the UI to display.
  4. //
  5. //=============================================================================
  6. #if !defined CS_GAMEPLAY_HINTS_H_
  7. #define CS_GAMEPLAY_HINTS_H_
  8. #if defined( COMPILER_MSVC )
  9. #pragma once
  10. #endif
  11. struct CSGameplayHint_t;
  12. class CCSGameplayHints : public CAutoGameSystem
  13. {
  14. public:
  15. CCSGameplayHints();
  16. virtual ~CCSGameplayHints();
  17. virtual void PostInit();
  18. virtual void Shutdown();
  19. const char* GetRandomLeastPlayedHint( void );
  20. enum HintRequiredContextFlags
  21. {
  22. HINT_CONTEXT_ALWAYS_SHOW = 0,
  23. HINT_CONTEXT_BOMB_MAP = (1<<0),
  24. HINT_CONTEXT_HOSTAGE_MAP = (1<<1),
  25. HINT_CONTEXT_GUNGAME = (1<<2),
  26. // HINT_CONTEXT_ELO_BRACKET_SHOWN = (1<<3), -- obsolete
  27. };
  28. private:
  29. CUtlVector<CSGameplayHint_t*> m_HintList;
  30. KeyValues *m_pHintKV;
  31. void Cleanup( void );
  32. uint32 GetCurrentContextFlags( void );
  33. };
  34. extern CCSGameplayHints g_CSGameplayHints;
  35. #endif // CS_GAMEPLAY_HINTS_H_