diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/cstrike/cs_nav_mesh.cpp | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/server/cstrike/cs_nav_mesh.cpp')
| -rw-r--r-- | game/server/cstrike/cs_nav_mesh.cpp | 127 |
1 files changed, 127 insertions, 0 deletions
diff --git a/game/server/cstrike/cs_nav_mesh.cpp b/game/server/cstrike/cs_nav_mesh.cpp new file mode 100644 index 0000000..0a46745 --- /dev/null +++ b/game/server/cstrike/cs_nav_mesh.cpp @@ -0,0 +1,127 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +// +//=============================================================================// +// NavMesh.cpp +// Implementation of Navigation Mesh interface +// Author: Michael S. Booth, 2003-2004 + +#include "cbase.h" +#include "filesystem.h" +#include "cs_nav_mesh.h" +#include "cs_nav_node.h" +#include "cs_nav_area.h" +#include "fmtstr.h" +#include "utlbuffer.h" +#include "tier0/vprof.h" + +//-------------------------------------------------------------------------------------------------------------- +CSNavMesh::CSNavMesh( void ) +{ +} + +//-------------------------------------------------------------------------------------------------------------- +CSNavMesh::~CSNavMesh() +{ +} + +CNavArea * CSNavMesh::CreateArea( void ) const +{ + return new CCSNavArea; +} + +//------------------------------------------------------------------------- +void CSNavMesh::BeginCustomAnalysis( bool bIncremental ) +{ + +} + + +//------------------------------------------------------------------------- +// invoked when custom analysis step is complete +void CSNavMesh::PostCustomAnalysis( void ) +{ + +} + + +//------------------------------------------------------------------------- +void CSNavMesh::EndCustomAnalysis() +{ + +} + + +//------------------------------------------------------------------------- +/** + * Returns sub-version number of data format used by derived classes + */ +unsigned int CSNavMesh::GetSubVersionNumber( void ) const +{ + // 1: initial implementation - added ApproachArea data + return 1; +} + +//------------------------------------------------------------------------- +/** + * Store custom mesh data for derived classes + */ +void CSNavMesh::SaveCustomData( CUtlBuffer &fileBuffer ) const +{ + +} + +//------------------------------------------------------------------------- +/** + * Load custom mesh data for derived classes + */ +void CSNavMesh::LoadCustomData( CUtlBuffer &fileBuffer, unsigned int subVersion ) +{ + +} + +//-------------------------------------------------------------------------------------------------------------- +/** + * Reset the Navigation Mesh to initial values + */ +void CSNavMesh::Reset( void ) +{ + CNavMesh::Reset(); +} + + +//-------------------------------------------------------------------------------------------------------------- +/** + * Zero player counts in all areas + */ +void CSNavMesh::ClearPlayerCounts( void ) +{ + FOR_EACH_VEC( TheNavAreas, it ) + { + CCSNavArea *area = (CCSNavArea*)TheNavAreas[ it ]; + area->ClearPlayerCount(); + } +} + +void CSNavMesh::Update( void ) +{ + CNavMesh::Update(); +} + +NavErrorType CSNavMesh::Load( void ) +{ + return CNavMesh::Load(); +} + +bool CSNavMesh::Save( void ) const +{ + return CNavMesh::Save(); +} + +NavErrorType CSNavMesh::PostLoad( unsigned int version ) +{ + return CNavMesh::PostLoad(version); +}
\ No newline at end of file |