aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/server/nav_mesh_factory.cpp
blob: 70d9936b48cd4773e77710088ae154a2b66aeb69 (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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//
//=============================================================================//
// NavMeshFactory.cpp
// Factory to create the NavMesh singleton
// Author: Michael S. Booth, June 2005

#include "cbase.h"
#include "nav_mesh.h"

#ifdef TERROR
#include "terror/TerrorNav.h"
#endif

#ifdef TF_DLL
#include "tf/nav_mesh/tf_nav_mesh.h"
#endif

#ifdef CSTRIKE_DLL
#include "cstrike/cs_nav_mesh.h"
#endif

// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"

CNavMesh *NavMeshFactory( void )
{
#ifdef TERROR
	return new TerrorNavMesh;
#endif

#ifdef TF_DLL
	return new CTFNavMesh;
#endif

#ifdef CSTRIKE_DLL
	return new CSNavMesh;
#endif

	return new CNavMesh;
}