gwnavgeneration/input/clientinputsectordescriptor.h Source File
Go to the documentation of this file.
8 #ifndef GwNavGen_ClientInputSectorDescriptor_H
9 #define GwNavGen_ClientInputSectorDescriptor_H
21 class ClientInputSectorDescriptorBlob
28 BlobFieldArray m_fields;
32 SwapEndianness(e,
self.m_fields);
36 class ClientInputSectorDescriptor
43 KyResult ReadFromAggregate(
const BlobAggregate& aggregate)
46 if (sectorDescs.GetCount() != 1)
48 return ReadFromBlob(*sectorDescs.GetHandler(0)->Blob());
51 void AddMapping(BlobFieldsMapping& mapping)
56 KyResult ReadFromBlob(
const ClientInputSectorDescriptorBlob& blob)
58 BlobFieldsMapping mapping;
60 return mapping.ReadFromBlobFieldArray(blob.m_fields);
69 class ClientInputSectorDescriptorBlobBuilder :
public BaseBlobBuilder<ClientInputSectorDescriptorBlob>
73 : m_descriptor(sectorDescriptor) {}
76 virtual void DoBuild()
78 BlobFieldsMapping mapping;
79 m_descriptor->AddMapping(mapping);
80 BlobFieldArrayBuilder blobFieldArrayBuilder(
"ClientInputSectorDescriptor", mapping);
81 BLOB_BUILD(m_blob->m_fields, blobFieldArrayBuilder);
83 ClientInputSectorDescriptor* m_descriptor;
KyInt32 KyResult
Defines a type that can be returned by methods or functions in the Gameware Navigation SDK to indicat...
Definition: types.h:254
#define BLOB_BUILD(blob, builder)
Use this macro only in implementations of BaseBlobBuilder::DoBuild().
Definition: baseblobbuilder.h:189
The Generator is the principal class in the NavData generation system.
Definition: generator.h:61
#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_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
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36