gwnavruntime/abstractgraph/blobs/abstractgraphcellblob.h Source File

abstractgraphcellblob.h
Go to the documentation of this file.
1 /*
2 * Copyright 2016 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 #pragma once
8 
14 
15 namespace Kaim
16 {
17 
18 class DatabaseGenMetrics;
19 class NavMeshGenParameters;
20 
21 
22 class AbstractGraphCellBlob
23 {
24  KY_ROOT_BLOB_CLASS(NavData, AbstractGraphCellBlob, 0)
25 public:
26  Vec3f GetPosition(AbstractGraphNodeIdx graphNodeIdx, AbstractGraphFloorIdx graphFloorIdx, const DatabaseGenMetrics& genMetrics) const;
27 
28 public:
29  CellPos m_cellPos;
30 
31  BlobArray< BlobRef<AbstractGraphFloorBlob> > m_abstractFloors;
32 };
33 
34 inline void SwapEndianness(Endianness::Target e, AbstractGraphCellBlob& self)
35 {
36  SwapEndianness(e, self.m_cellPos);
37  SwapEndianness(e, self.m_abstractFloors);
38 }
39 
40 
41 }
42 
43 
Vec2i CellPos
A type that represents the position of a cell within a 2D grid.
Definition: navmeshtypes.h:30
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17