gwnavruntime/world/cylinderobstacleblob.h Source File

cylinderobstacleblob.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 
8 // primary contact: LAPA - secondary contact: BRGR
9 #ifndef Navigation_CylinderObstacleBlob_H
10 #define Navigation_CylinderObstacleBlob_H
11 
17 
18 
19 namespace Kaim
20 {
21 
22 class CylinderObstacleBlob
23 {
24  KY_DEFINE_NEW_DELETE_OPERATORS(MemStat_CylinderObstacle)
25  KY_ROOT_BLOB_CLASS(Runtime, CylinderObstacleBlob, 0)
26 
27 public:
28  KyUInt32 m_tagVolumeIntegrationStatus;
29  KyUInt32 m_visualDebugId;
30  DatabaseBindingBlob m_databaseBinding;
31  KyUInt32 m_triggerTagVolume;
32 };
33 
34 inline void SwapEndianness(Endianness::Target e, CylinderObstacleBlob& self)
35 {
36  SwapEndianness(e, self.m_tagVolumeIntegrationStatus);
37  SwapEndianness(e, self.m_visualDebugId);
38  SwapEndianness(e, self.m_databaseBinding);
39  SwapEndianness(e, self.m_triggerTagVolume);
40 }
41 
42 class CylinderObstacleBlobBuilder : public BaseBlobBuilder<CylinderObstacleBlob>
43 {
44 public:
45  CylinderObstacleBlobBuilder(const CylinderObstacle* cylinderObstacle)
46  : m_cylinderObstacle(cylinderObstacle)
47  {}
48 
49 private:
50  virtual void DoBuild();
51 
52  const CylinderObstacle* m_cylinderObstacle;
53 };
54 
55 } // namespace Kaim
56 
57 #endif // Navigation_CylinderObstacleBlob_H
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36