Team Fortress 2 Source Code as on 22/4/2020
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.

42 lines
1.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Interface for the client to general GC API
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================
  7. #ifndef C_TF_FREEACCOUNT_H
  8. #define C_TF_FREEACCOUNT_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. namespace vgui
  13. {
  14. class Panel;
  15. };
  16. class CSelectPlayerDialog;
  17. /**
  18. * @return true if the local player is using a free trial account, false otherwise
  19. */
  20. bool IsFreeTrialAccount();
  21. /**
  22. * @return true if the local player needs to choose their most helpful friend, false otherwse
  23. */
  24. bool NeedsToChooseMostHelpfulFriend();
  25. /**
  26. * Adds an alert that the player needs to choose their most helpful friend
  27. */
  28. void NotifyNeedsToChooseMostHelpfulFriend();
  29. /**
  30. * Opens the dialog where the user can specify the friend that helped them the most
  31. * @param pParent
  32. * @return CSelectPlayerDialog
  33. */
  34. CSelectPlayerDialog *OpenSelectMostHelpfulFriendDialog( vgui::Panel *pParent );
  35. #endif // C_TF_FREEACCOUNT_H