gwnavruntime/collision/collisiondatasectordescriptor.h Source File
Go to the documentation of this file.
9 #ifndef Navigation_ColDataSectorDescriptor_H
10 #define Navigation_ColDataSectorDescriptor_H
21 class ColDataSectorDescriptorBlob
28 BlobFieldArray m_fields;
32 SwapEndianness(e,
self.m_fields);
44 class ColDataSectorDescriptor
51 KyResult ReadFromAggregate(
const BlobAggregate& aggregate)
54 if (sectorDescs.GetCount() != 1)
56 return ReadFromBlob(*sectorDescs.GetHandler(0)->Blob());
59 void AddMapping(BlobFieldsMapping& mapping)
63 mapping.AddGuid(
"SectorGUID",
m_guid);
66 KyResult ReadFromBlob(
const ColDataSectorDescriptorBlob& blob)
68 BlobFieldsMapping mapping;
70 return mapping.ReadFromBlobFieldArray(blob.m_fields);
89 #endif // Navigation_ColDataSectorDescriptor_H
KyInt32 KyResult
Defines a type that can be returned by methods or functions in the Gameware Navigation SDK to indicat...
Definition: types.h:254
The CollisionData class represents Collision Data that will be added to a CollisionWorld.
Definition: collisiondata.h:34
Set of Key-Values embedded within in ColData BlobAggregate (serialized form).
Definition: collisiondatasectordescriptor.h:22
String m_generatorRelativeOutputDirectory
Generator relative directory to used by the generator to output NavData, ClientInput, GenIO, related to this sector m_generatorRelativeOutputDirectory is relativeOutputDir in the call to void SetOutputDirectory(const char* absoluteOutputBaseDir, const char* relativeOutputDir);.
Definition: collisiondatasectordescriptor.h:87
#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
String m_sectorName
Contains the name of the sector which is also the name of the file This is used to identify Graph-onl...
Definition: collisiondatasectordescriptor.h:83
#define KY_ERROR
Shorthand for Kaim::Result::Failure.
Definition: types.h:272
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
KyGuid m_guid
Index of the Lab's database in which the NavData will be added to.
Definition: collisiondatasectordescriptor.h:92
Easy to write/read version of SectorDescriptorBlob.
Definition: collisiondatasectordescriptor.h:49