#ifndef NAVMESH_EXPORTER_H #define NAVMESH_EXPORTER_H #include #include #include #include #include #include "exporter.h" #include #include #include #include class NavmeshExporter { public: static void exportZone( const ExportedZone& zone ) { auto start = std::chrono::high_resolution_clock::now(); auto fileName = zone.name + ".obj"; auto end = std::chrono::high_resolution_clock::now(); printf( "[Navmesh] Finished exporting %s in %u ms\n", fileName.c_str(), std::chrono::duration_cast< std::chrono::milliseconds >( end - start ).count() ); } static void exportGroup( const std::string& zoneName, const ExportedGroup& group ) { auto start = std::chrono::high_resolution_clock::now(); auto fileName = zoneName + "_" + group.name + ".obj"; auto end = std::chrono::high_resolution_clock::now(); printf( "[Navmesh] Finished exporting %s in %u ms\n", fileName.c_str(), std::chrono::duration_cast< std::chrono::milliseconds >( end - start ).count() ); } private: static void exportGroup( const ExportedGroup& group, std::ofstream& of, int& indicesOffset, int& modelCount ) { } }; #endif // !OBJ_EXPORTER_H