gwnavruntime/queries/blobs/navhalfedgeblob.h Source File
Go to the documentation of this file.
8 #ifndef Navigation_NavHalfEdgeBlob_H
9 #define Navigation_NavHalfEdgeBlob_H
32 : m_halfEdgeIdx(CompactNavHalfEdgeIdx_MAXVAL)
36 ValidityStatus GetValidityStatus()
const {
return (ValidityStatus)m_status; }
41 CompactNavHalfEdgeIdx m_halfEdgeIdx;
47 SwapEndianness(e,
self.m_startPos3f);
48 SwapEndianness(e,
self.m_endPos3f);
49 SwapEndianness(e,
self.m_cellPos);
50 SwapEndianness(e,
self.m_halfEdgeIdx);
51 SwapEndianness(e,
self.m_status);
55 class NavHalfEdgeBlobBuilder :
public BaseBlobBuilder<NavHalfEdgeBlob>
58 NavHalfEdgeBlobBuilder(
const NavHalfEdgePtr& halfEdgePtr) : m_halfEdgePtr(halfEdgePtr) {}
64 if (m_halfEdgePtr.IsValid() ==
false)
70 m_blob->m_halfEdgeIdx = (CompactNavHalfEdgeIdx)m_halfEdgePtr.GetHalfEdgeIdx();
71 m_blob->m_cellPos = m_halfEdgePtr.GetCellPos();
73 m_halfEdgePtr.GetVerticesPos3f(
m_blob->m_startPos3f,
m_blob->m_endPos3f);
77 NavHalfEdgePtr m_halfEdgePtr;
81 #endif // Navigation_NavHalfEdgeBlob_H
Vec2i CellPos
A type that represents the position of a cell within a 2D grid.
Definition: navmeshtypes.h:33
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:35
NavHalfEdgeBlob * m_blob
The blob maintained by this builder. Only modify using the macros listed under DoBuild().
Definition: baseblobbuilder.h:117
Definition: gamekitcrowddispersion.h:20
bool IsWriteMode()
Indicates whether the builder is operating in COUNT mode or in WRITE mode.
Definition: baseblobbuilder.h:47
unsigned short KyUInt16
Type used internally to represent an unsigned 16-bit integer.
Definition: types.h:40