mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
808 B
C++
28 lines
808 B
C++
4 years ago
|
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_SERIALIZATION_H
|
||
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_SERIALIZATION_H
|
||
|
|
||
|
#include <cstddef>
|
||
|
#include <cstdint>
|
||
|
#include <vector>
|
||
|
|
||
|
namespace DetourNavigator
|
||
|
{
|
||
|
class RecastMesh;
|
||
|
struct DbRefGeometryObject;
|
||
|
struct PreparedNavMeshData;
|
||
|
struct RecastSettings;
|
||
|
|
||
|
constexpr char recastMeshMagic[] = {'r', 'c', 's', 't'};
|
||
|
constexpr std::uint32_t recastMeshVersion = 1;
|
||
|
|
||
|
constexpr char preparedNavMeshDataMagic[] = {'p', 'n', 'a', 'v'};
|
||
|
constexpr std::uint32_t preparedNavMeshDataVersion = 1;
|
||
|
|
||
|
std::vector<std::byte> serialize(const RecastSettings& settings, const RecastMesh& value,
|
||
|
const std::vector<DbRefGeometryObject>& dbRefGeometryObjects);
|
||
|
|
||
|
std::vector<std::byte> serialize(const PreparedNavMeshData& value);
|
||
|
}
|
||
|
|
||
|
#endif
|