mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-25 14:07:46 +00:00
hopefully builds on linux this time
This commit is contained in:
parent
3348cc9c47
commit
00c7558b1b
3 changed files with 5 additions and 18 deletions
|
@ -52,17 +52,4 @@ struct ExportedZone
|
|||
std::map< std::string, ExportedGroup > groups;
|
||||
};
|
||||
|
||||
class Exporter
|
||||
{
|
||||
public:
|
||||
Exporter() { }
|
||||
~Exporter(){}
|
||||
|
||||
virtual void exportZone( const ExportedZone& zone ) = 0;
|
||||
virtual void exportGroup( const ExportedGroup& group ) = 0;
|
||||
|
||||
protected:
|
||||
ExportFileType m_exportFileType;
|
||||
};
|
||||
|
||||
#endif
|
|
@ -15,7 +15,7 @@
|
|||
#include <recastnavigation/Detour/Include/DetourNavMesh.h>
|
||||
#include <recastnavigation/Detour/Include/DetourNavMeshBuilder.h>
|
||||
|
||||
class NavmeshExporter : public Exporter
|
||||
class NavmeshExporter
|
||||
{
|
||||
public:
|
||||
static void exportZone( const ExportedZone& zone )
|
||||
|
@ -26,7 +26,7 @@ public:
|
|||
|
||||
auto end = std::chrono::high_resolution_clock::now();
|
||||
printf( "[Navmesh] Finished exporting %s in %u ms\n",
|
||||
fileName,
|
||||
fileName.c_str(),
|
||||
std::chrono::duration_cast< std::chrono::milliseconds >( end - start ).count() );
|
||||
}
|
||||
|
||||
|
@ -39,7 +39,7 @@ public:
|
|||
auto end = std::chrono::high_resolution_clock::now();
|
||||
|
||||
printf( "[Navmesh] Finished exporting %s in %u ms\n",
|
||||
fileName,
|
||||
fileName.c_str(),
|
||||
std::chrono::duration_cast< std::chrono::milliseconds >( end - start ).count() );
|
||||
}
|
||||
private:
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include "exporter.h"
|
||||
|
||||
|
||||
class ObjExporter : public Exporter
|
||||
class ObjExporter
|
||||
{
|
||||
public:
|
||||
static void exportZone( const ExportedZone& zone )
|
||||
|
@ -51,7 +51,7 @@ public:
|
|||
|
||||
auto end = std::chrono::high_resolution_clock::now();
|
||||
printf( "[Obj] Finished exporting %s in %u ms\n",
|
||||
fileName,
|
||||
fileName.c_str(),
|
||||
std::chrono::duration_cast< std::chrono::milliseconds >( end - start ).count() );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue