Counter Strike : Global Offensive Source Code
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.

54 lines
1.1 KiB

  1. //========= Copyright © 1996-2005, 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. virtual void FormatPlayer( CBaseEntity *ent, char *str, int len ) const;
  26. const char *FormatPlayer( CBaseEntity *ent ) const;
  27. enum
  28. {
  29. PLAYER_LOGINFO_SIZE = 256,
  30. };
  31. protected:
  32. virtual bool PrintEvent( IGameEvent * event );
  33. virtual bool PrintGameEvent( IGameEvent * event );
  34. virtual bool PrintPlayerEvent( IGameEvent * event );
  35. virtual bool PrintTeamEvent( IGameEvent * event );
  36. virtual bool PrintOtherEvent( IGameEvent * event );
  37. };
  38. extern CEventLog *GameLogSystem();
  39. #endif // EVENTLOG_H