gwnavruntime/collision/collisiondataindex.h Source File
Go to the documentation of this file.
9 #ifndef Navigation_ColDataIndex_H
10 #define Navigation_ColDataIndex_H
23 class ColDataDescriptor
28 ColDataDescriptor() {}
29 const char* GetFileName()
const {
return m_fileName.GetValues(); }
31 BlobArray<char> m_fileName;
37 SwapEndianness(e,
self.m_fileName);
38 SwapEndianness(e,
self.m_guid);
39 SwapEndianness(e,
self.m_boundingBox);
46 KY_ROOT_BLOB_CLASS(CollisionData, ColDataIndex, 0)
50 KyUInt32 GetDescriptorsCount()
const {
return m_descriptors.GetCount(); }
51 const ColDataDescriptor& GetDescriptor(
KyUInt32 index)
const {
return m_descriptors.GetValues()[index]; }
52 BlobArray<ColDataDescriptor> m_descriptors;
57 SwapEndianness(e,
self.m_descriptors);
60 class ColDataIndexLoader
65 static Ptr< BlobHandler<ColDataIndex> > LoadColDataIndex(const
char* filename, FileOpenerBase* fileOpener =
KY_NULL);
#define KY_NULL
Null value.
Definition: types.h:247
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:387
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:35
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