summaryrefslogtreecommitdiff
path: root/engine/hltvtest.h
blob: 676e8cbc38fdd0873016a6f88250498039418224 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//
//=============================================================================//
// hltvtest.h: hltv test system
//
//////////////////////////////////////////////////////////////////////

#ifndef HLTVTEST_H
#define HLTVTEST_H
#ifdef _WIN32
#pragma once
#endif

#include "utlvector.h"

class CHLTVServer;

class CHLTVTestSystem
{
public:
	CHLTVTestSystem(void);
	~CHLTVTestSystem(void);

	void RunFrame();
	bool StartTest(int nClients, const char *pszAddress);
	void RetryTest(int nClients);
	bool StopsTest();

protected:

	CUtlVector<CHLTVServer*>	m_Servers;
};

extern CHLTVTestSystem *hltvtest;	// The global HLTV server/object. NULL on xbox.

#endif // HLTVSERVER_H