Counter Strike : Global Offensive Source Code
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.

37 lines
710 B

  1. //========= Copyright � 1996-2005, 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 CSTRIKE_DLL
  17. #include "cs_nav_mesh.h"
  18. #endif
  19. // memdbgon must be the last include file in a .cpp file!!!
  20. #include "tier0/memdbgon.h"
  21. CNavMesh *NavMeshFactory( void )
  22. {
  23. #ifdef TERROR
  24. return new TerrorNavMesh;
  25. #endif
  26. #ifdef CSTRIKE_DLL
  27. return new CSNavMesh;
  28. #endif
  29. return new CNavMesh;
  30. }