1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-01-03 16:13:22 +08:00
hl2sdk/game/server/gamedll_replay.cpp
2013-06-26 15:22:04 -07:00

23 lines
727 B
C++

//========= Copyright Valve Corporation, All rights reserved. ============//
#include "cbase.h"
#if defined( REPLAY_ENABLED )
#include "replay/iserverreplay.h"
#include "replay_gamestats_shared.h"
//----------------------------------------------------------------------------------------
class CServerReplayImp : public IServerReplay
{
public:
virtual void UploadOgsData( KeyValues *pData, bool bIncludeTimeField )
{
GetReplayGameStatsHelper().UploadError( pData, bIncludeTimeField );
}
};
static CServerReplayImp s_ServerReplayImp;
EXPOSE_SINGLE_INTERFACE_GLOBALVAR( CServerReplayImp, IServerReplay, SERVER_REPLAY_INTERFACE_VERSION, s_ServerReplayImp );
#endif // #if defined( REPLAY_ENABLED )