gwnavruntime/abstractgraph/blobs/abstractgraphcellblob.h Source File

abstractgraphcellblob.h
Go to the documentation of this file.
1 /*
2 * Copyright 2015 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 #ifndef Navigation_AbstractGraphCellBlob_H
8 #define Navigation_AbstractGraphCellBlob_H
9 
15 
16 namespace Kaim
17 {
18 
19 class DatabaseGenMetrics;
20 class NavMeshGenParameters;
21 
22 
23 class AbstractGraphCellBlob
24 {
25  KY_ROOT_BLOB_CLASS(NavData, AbstractGraphCellBlob, 0)
26 public:
27  Vec3f GetPosition(AbstractGraphNodeIdx graphNodeIdx, AbstractGraphFloorIdx graphFloorIdx, const DatabaseGenMetrics& genMetrics) const;
28 
29 public:
30  CellPos m_cellPos;
31 
32  BlobArray< BlobRef<AbstractGraphFloorBlob> > m_abstractFloors;
33 };
34 
35 inline void SwapEndianness(Endianness::Target e, AbstractGraphCellBlob& self)
36 {
37  SwapEndianness(e, self.m_cellPos);
38  SwapEndianness(e, self.m_abstractFloors);
39 }
40 
41 
42 }
43 
44 
45 #endif
Vec2i CellPos
A type that represents the position of a cell within a 2D grid.
Definition: navmeshtypes.h:33
Definition: gamekitcrowddispersion.h:20