diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf/tf_steamstats.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/tf/tf_steamstats.h')
| -rw-r--r-- | game/client/tf/tf_steamstats.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/game/client/tf/tf_steamstats.h b/game/client/tf/tf_steamstats.h new file mode 100644 index 0000000..2ce4f92 --- /dev/null +++ b/game/client/tf/tf_steamstats.h @@ -0,0 +1,34 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef TF_STEAMSTATS_H +#define TF_STEAMSTATS_H +#ifdef _WIN32 +#pragma once +#endif + +#include "steam/steam_api.h" +#include "GameEventListener.h" + +class CTFSteamStats : public CAutoGameSystem, public CGameEventListener +{ +public: + CTFSteamStats(); + virtual void PostInit(); + virtual void LevelShutdownPreEntity(); + virtual void UploadStats(); + +private: + void FireGameEvent( IGameEvent *event ); + void SetNextForceUploadTime(); + void ReportLiveStats(); // Xbox 360 + float m_flTimeNextForceUpload; +}; + +extern CTFSteamStats g_TFSteamStats; + +#endif //TF_STEAMSTATS_H
\ No newline at end of file |