Team Fortress 2 Source Code as on 22/4/2020
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.

46 lines
970 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #if !defined EVENTLOG_H
  9. #define EVENTLOG_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. #include "GameEventListener.h"
  14. #include <igamesystem.h>
  15. class CEventLog : public CGameEventListener, public CBaseGameSystem
  16. {
  17. public:
  18. CEventLog();
  19. virtual ~CEventLog();
  20. public: // IGameEventListener Interface
  21. virtual void FireGameEvent( IGameEvent * event );
  22. public: // CBaseGameSystem overrides
  23. virtual bool Init();
  24. virtual void Shutdown();
  25. protected:
  26. virtual bool PrintEvent( IGameEvent * event );
  27. virtual bool PrintGameEvent( IGameEvent * event );
  28. virtual bool PrintPlayerEvent( IGameEvent * event );
  29. virtual bool PrintTeamEvent( IGameEvent * event );
  30. virtual bool PrintOtherEvent( IGameEvent * event );
  31. };
  32. extern IGameSystem* GameLogSystem();
  33. #endif // EVENTLOG_H