diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/NavMesh/HeightmapData.h |
Diffstat (limited to 'Runtime/NavMesh/HeightmapData.h')
-rw-r--r-- | Runtime/NavMesh/HeightmapData.h | 26 |
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 |