Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
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.

34 lines
755 B

5 years ago
//========= 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