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.

33 lines
755 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef TF_STEAMSTATS_H
  8. #define TF_STEAMSTATS_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "steam/steam_api.h"
  13. #include "GameEventListener.h"
  14. class CTFSteamStats : public CAutoGameSystem, public CGameEventListener
  15. {
  16. public:
  17. CTFSteamStats();
  18. virtual void PostInit();
  19. virtual void LevelShutdownPreEntity();
  20. virtual void UploadStats();
  21. private:
  22. void FireGameEvent( IGameEvent *event );
  23. void SetNextForceUploadTime();
  24. void ReportLiveStats(); // Xbox 360
  25. float m_flTimeNextForceUpload;
  26. };
  27. extern CTFSteamStats g_TFSteamStats;
  28. #endif //TF_STEAMSTATS_H