mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-01-03 14:06:44 +00:00
34 lines
755 B
C++
34 lines
755 B
C++
//========= 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
|