mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
c9b8ba7b46
When tile is not found in memory cache try to find it in the database.
30 lines
895 B
C++
30 lines
895 B
C++
#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);
|
|
|
|
bool deserialize(const std::vector<std::byte>& data, PreparedNavMeshData& value);
|
|
}
|
|
|
|
#endif
|