Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
810 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // NavMeshFactory.cpp
  9. // Factory to create the NavMesh singleton
  10. // Author: Michael S. Booth, June 2005
  11. #include "cbase.h"
  12. #include "nav_mesh.h"
  13. #ifdef TERROR
  14. #include "terror/TerrorNav.h"
  15. #endif
  16. #ifdef TF_DLL
  17. #include "tf/nav_mesh/tf_nav_mesh.h"
  18. #endif
  19. #ifdef CSTRIKE_DLL
  20. #include "cstrike/cs_nav_mesh.h"
  21. #endif
  22. // memdbgon must be the last include file in a .cpp file!!!
  23. #include "tier0/memdbgon.h"
  24. CNavMesh *NavMeshFactory( void )
  25. {
  26. #ifdef TERROR
  27. return new TerrorNavMesh;
  28. #endif
  29. #ifdef TF_DLL
  30. return new CTFNavMesh;
  31. #endif
  32. #ifdef CSTRIKE_DLL
  33. return new CSNavMesh;
  34. #endif
  35. return new CNavMesh;
  36. }