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.

36 lines
807 B

  1. //======= Copyright (c) 1996-2009, Valve Corporation, All rights reserved. ======
  2. //
  3. // Forwards game events to remote IP address. This is to facilitate the recording
  4. // of the play tests and to be able to index into the recorded video based on events.
  5. //
  6. //===============================================================================
  7. #ifndef GAMEEVENTTRANSMITTER_H
  8. #define GAMEEVENTTRANSMITTER_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "igameevents.h"
  13. #include "tier1/netadr.h"
  14. class CGameEventTransmitter
  15. {
  16. public:
  17. CGameEventTransmitter();
  18. ~CGameEventTransmitter();
  19. bool Init();
  20. void TransmitGameEvent( IGameEvent *event );
  21. bool SetIPAndPort( const char *address );
  22. private:
  23. netadr_t m_Adr;
  24. };
  25. extern CGameEventTransmitter &g_GameEventTransmitter;
  26. #endif // GAMEEVENTTRANSMITTER_H