summaryrefslogtreecommitdiff
path: root/Runtime/NavMesh/HeightmapData.h
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/NavMesh/HeightmapData.h')
-rw-r--r--Runtime/NavMesh/HeightmapData.h26
1 files changed, 26 insertions, 0 deletions
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<Object> terrainData;
+};
+
+typedef dynamic_array<HeightmapData> HeightmapDataVector;
+
+template<class TransferFunction>
+void HeightmapData::Transfer (TransferFunction& transfer)
+{
+ TRANSFER (position);
+ TRANSFER (terrainData);
+}
+
+#endif