From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/NavMesh/HeightmapData.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Runtime/NavMesh/HeightmapData.h (limited to 'Runtime/NavMesh/HeightmapData.h') diff --git a/Runtime/NavMesh/HeightmapData.h b/Runtime/NavMesh/HeightmapData.h new file mode 100644 index 0000000..a6cd65d --- /dev/null +++ b/Runtime/NavMesh/HeightmapData.h @@ -0,0 +1,26 @@ +#ifndef HEIGHTMAPDATA_H +#define HEIGHTMAPDATA_H + +#include "Runtime/BaseClasses/BaseObject.h" +#include "Runtime/Serialize/SerializeUtility.h" +#include "Runtime/Math/Vector3.h" +#include "Runtime/Utilities/dynamic_array.h" + +struct HeightmapData +{ + DECLARE_SERIALIZE (HeightmapData) + + Vector3f position; + PPtr terrainData; +}; + +typedef dynamic_array HeightmapDataVector; + +template +void HeightmapData::Transfer (TransferFunction& transfer) +{ + TRANSFER (position); + TRANSFER (terrainData); +} + +#endif -- cgit v1.1-26-g67d0