gwnavruntime/path/positiononpathblob.h Source File
Go to the documentation of this file.
9 #ifndef Navigation_PositionOnPathBlob_H
10 #define Navigation_PositionOnPathBlob_H
21 class PositionOnPathBlob
23 KY_ROOT_BLOB_CLASS(Runtime, PositionOnPathBlob, 0)
30 Vec3f m_positionOnPath;
36 SwapEndianness(e,
self.m_positionOnPath);
37 SwapEndianness(e,
self.m_edgeIndex);
38 SwapEndianness(e,
self.m_onPathStatus);
42 class PositionOnPathBlobBuilder:
public BaseBlobBuilder<PositionOnPathBlob>
47 PositionOnPathBlobBuilder(const PositionOnPath* positionOnPath)
48 : m_positionOnPath(positionOnPath)
50 ~PositionOnPathBlobBuilder() {}
53 virtual void DoBuild()
57 BLOB_SET(
m_blob->m_positionOnPath, m_positionOnPath->GetPosition());
60 BLOB_SET(
m_blob->m_edgeIndex , m_positionOnPath->GetPathEdgeIndex());
67 const PositionOnPath* m_positionOnPath;
#define BLOB_SET(blob, value)
Use this macro only in implementations of BaseBlobBuilder::DoBuild().
Definition: baseblobbuilder.h:136
PositionOnPathStatus
< enumerates="" the="" different="" status="" an="" objectpositiononpath="" can="" have="" on="" its="" path.="" />
Definition: positiononpath.h:20
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:387
The PositionOnPath is not yet defined.
Definition: positiononpath.h:22
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:35
PositionOnPathBlob * m_blob
The blob maintained by this builder. Only modify using the macros listed under DoBuild().
Definition: baseblobbuilder.h:117
Definition: gamekitcrowddispersion.h:20
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
#define KyUInt32MAXVAL
The maximum value that can be stored in the KyUInt32 variable type.
Definition: types.h:226