This commit is contained in:
nephacks
2025-06-04 03:22:50 +02:00
parent f234f23848
commit f12416cffd
14243 changed files with 6446499 additions and 26 deletions

View File

@@ -0,0 +1,36 @@
//======= Copyright (c) 1996-2009, Valve Corporation, All rights reserved. ======
//
// Forwards game events to remote IP address. This is to facilitate the recording
// of the play tests and to be able to index into the recorded video based on events.
//
//===============================================================================
#ifndef GAMEEVENTTRANSMITTER_H
#define GAMEEVENTTRANSMITTER_H
#ifdef _WIN32
#pragma once
#endif
#include "igameevents.h"
#include "tier1/netadr.h"
class CGameEventTransmitter
{
public:
CGameEventTransmitter();
~CGameEventTransmitter();
bool Init();
void TransmitGameEvent( IGameEvent *event );
bool SetIPAndPort( const char *address );
private:
netadr_t m_Adr;
};
extern CGameEventTransmitter &g_GameEventTransmitter;
#endif // GAMEEVENTTRANSMITTER_H