summaryrefslogtreecommitdiff
path: root/app/legion/legion.h
blob: b998bfbffb58b40f90d89b93ebe3cb96834e4b03 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// The copyright to the contents herein is the property of Valve, L.L.C.
// The contents may be used and/or copied only with the written permission of
// Valve, L.L.C., or in accordance with the terms and conditions stipulated in
// the agreement/contract under which the contents have been supplied.
//
// $Header: $
// $NoKeywords: $
//
// An RTS!
//=============================================================================

#ifndef LEGION_H
#define LEGION_H

#ifdef _WIN32
#pragma once
#endif

#include "appframework/vguimatsysapp.h"
#include "tier1/convar.h"

//-----------------------------------------------------------------------------
// Forward declarations
//-----------------------------------------------------------------------------
class CLegionApp;


//-----------------------------------------------------------------------------
// Singleton interfaces
//-----------------------------------------------------------------------------
extern CLegionApp *g_pApp;


//-----------------------------------------------------------------------------
// The application object
//-----------------------------------------------------------------------------
class CLegionApp : public CVguiMatSysApp, public IConCommandBaseAccessor
{
	typedef CVguiMatSysApp BaseClass;

public:
	// Methods of IApplication
	virtual bool Create();
	virtual bool PreInit( );
	virtual int Main();
	virtual void PostShutdown( );
	virtual const char *GetAppName() { return "Legion"; }

	// Methods of IConCommandBaseAccessor
	virtual bool RegisterConCommandBase( ConCommandBase *pCommand );
	virtual void UnregisterConCommandBase( ConCommandBase *pCommand );

	// Promote to public
	void AppPumpMessages() { BaseClass::AppPumpMessages(); }

private:
};


#endif // LEGION_H