gwnavruntime/world/cylinderobstacleblob.h Source File

cylinderobstacleblob.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 
8 #pragma once
9 
15 
16 
17 namespace Kaim
18 {
19 
20 class CylinderObstacleBlob
21 {
22  KY_DEFINE_NEW_DELETE_OPERATORS(MemStat_CylinderObstacle)
23  KY_ROOT_BLOB_CLASS(Runtime, CylinderObstacleBlob, 0)
24 
25 public:
26  KyUInt32 m_tagVolumeIntegrationStatus;
27  KyUInt32 m_visualDebugId;
28  DatabaseBindingBlob m_databaseBinding;
29  KyUInt32 m_triggerTagVolume;
30 };
31 
32 inline void SwapEndianness(Endianness::Target e, CylinderObstacleBlob& self)
33 {
34  SwapEndianness(e, self.m_tagVolumeIntegrationStatus);
35  SwapEndianness(e, self.m_visualDebugId);
36  SwapEndianness(e, self.m_databaseBinding);
37  SwapEndianness(e, self.m_triggerTagVolume);
38 }
39 
40 class CylinderObstacleBlobBuilder : public BaseBlobBuilder<CylinderObstacleBlob>
41 {
42 public:
43  CylinderObstacleBlobBuilder(const CylinderObstacle* cylinderObstacle)
44  : m_cylinderObstacle(cylinderObstacle)
45  {}
46 
47 private:
48  virtual void DoBuild();
49 
50  const CylinderObstacle* m_cylinderObstacle;
51 };
52 
53 } // namespace Kaim
54 
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17