gwnavruntime/path/positiononpathblob.h Source File
Go to the documentation of this file.
19 class PositionOnPathBlob
21 KY_ROOT_BLOB_CLASS(Runtime, PositionOnPathBlob, 0)
28 Vec3f m_positionOnPath;
34 SwapEndianness(e,
self.m_positionOnPath);
35 SwapEndianness(e,
self.m_edgeIndex);
36 SwapEndianness(e,
self.m_onPathStatus);
40 class PositionOnPathBlobBuilder:
public BaseBlobBuilder<PositionOnPathBlob>
45 PositionOnPathBlobBuilder(const PositionOnPath* positionOnPath)
46 : m_positionOnPath(positionOnPath)
48 ~PositionOnPathBlobBuilder() {}
51 virtual void DoBuild()
55 BLOB_SET(
m_blob->m_positionOnPath, m_positionOnPath->GetPosition());
58 BLOB_SET(
m_blob->m_edgeIndex , m_positionOnPath->GetPathEdgeIndex());
65 const PositionOnPath* m_positionOnPath;
#define BLOB_SET(blob, value)
Use this macro only in implementations of BaseBlobBuilder::DoBuild().
Definition: baseblobbuilder.h:130
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
PositionOnPathStatus
< enumerates="" the="" different="" status="" an="" objectpositiononpath="" can="" have="" on="" its="" path.="" />
Definition: positiononpath.h:17
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:196
The PositionOnPath is not yet defined.
Definition: positiononpath.h:19
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:27
PositionOnPathBlob * m_blob
The blob maintained by this builder. Only modify using the macros listed under DoBuild().
Definition: baseblobbuilder.h:113
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
#define KyUInt32MAXVAL
KyUInt32 max value
Definition: types.h:68