initial
This commit is contained in:
36
engine/gameeventtransmitter.h
Normal file
36
engine/gameeventtransmitter.h
Normal 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
|
||||
Reference in New Issue
Block a user