mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-29 17:43:01 +00:00
47 lines
970 B
C
47 lines
970 B
C
|
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||
|
//
|
||
|
// Purpose:
|
||
|
//
|
||
|
// $NoKeywords: $
|
||
|
//
|
||
|
//=============================================================================//
|
||
|
|
||
|
#if !defined EVENTLOG_H
|
||
|
#define EVENTLOG_H
|
||
|
|
||
|
#ifdef _WIN32
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
#include "GameEventListener.h"
|
||
|
#include <igamesystem.h>
|
||
|
|
||
|
class CEventLog : public CGameEventListener, public CBaseGameSystem
|
||
|
{
|
||
|
|
||
|
public:
|
||
|
CEventLog();
|
||
|
virtual ~CEventLog();
|
||
|
|
||
|
public: // IGameEventListener Interface
|
||
|
|
||
|
virtual void FireGameEvent( IGameEvent * event );
|
||
|
|
||
|
public: // CBaseGameSystem overrides
|
||
|
|
||
|
virtual bool Init();
|
||
|
virtual void Shutdown();
|
||
|
|
||
|
protected:
|
||
|
|
||
|
virtual bool PrintEvent( IGameEvent * event );
|
||
|
virtual bool PrintGameEvent( IGameEvent * event );
|
||
|
virtual bool PrintPlayerEvent( IGameEvent * event );
|
||
|
virtual bool PrintTeamEvent( IGameEvent * event );
|
||
|
virtual bool PrintOtherEvent( IGameEvent * event );
|
||
|
};
|
||
|
|
||
|
extern IGameSystem* GameLogSystem();
|
||
|
|
||
|
#endif // EVENTLOG_H
|