10 #ifndef GwNavGen_GeneratorGlobalConfig_H
11 #define GwNavGen_GeneratorGlobalConfig_H
24 class DatabaseGenMetrics;
26 class GeneratorNormalizedParameters
31 GeneratorNormalizedParameters();
46 class GeneratorParametersBlob
49 KY_ROOT_BLOB_CLASS(Generator, GeneratorParametersBlob, 0)
52 GeneratorParametersBlob() {}
53 BlobFieldArray m_fields;
54 NavTag m_defaultNavTag;
55 VisualColor m_emptyDefaultNavTagColor;
56 VisualColor m_nonEmptyDefaultNavTagColor;
57 VisualColor m_nonDefaultNavTagColor;
61 SwapEndianness(e,
self.m_fields);
62 SwapEndianness(e,
self.m_defaultNavTag);
63 SwapEndianness(e,
self.m_emptyDefaultNavTagColor);
64 SwapEndianness(e,
self.m_nonEmptyDefaultNavTagColor);
65 SwapEndianness(e,
self.m_nonDefaultNavTagColor);
72 class GeneratorParameters
85 void SetDefaultValues() { Clear(); }
87 void ComputeNormalizedParams();
100 KyResult ReadFromAggregate(BlobAggregate& aggregate);
108 void InitBlobFieldMapping(BlobFieldsMapping& mapping,
KyUInt32& version);
109 void InitBlobFieldMapping(BlobFieldsMapping& mapping,
KyUInt32& version)
const;
113 KyResult ReadFromBlob(
const GeneratorParametersBlob& blob);
115 void SetDefaultNavTag(
const KyArrayPOD<KyUInt32>& blindDataArray) { SetDefaultNavTag(blindDataArray.GetDataPtr(), blindDataArray.GetCount()); }
116 void SetDefaultNavTag(
const KyUInt32* blindDataBuffer,
KyUInt32 blindDataCount);
117 void SetEmptyDefaultNavTagColor(VisualColor color);
118 void SetNonEmptyDefaultNavTagColor(VisualColor color);
119 void SetNonDefaultNavTagColor(VisualColor color);
121 const DynamicNavTag& GetDefaultNavTag()
const {
return m_defaultNavTag; }
172 GeneratorNormalizedParameters m_normalizedParameters;
176 DynamicNavTag m_defaultNavTag;
180 template <
class OSTREAM>
183 BlobFieldsMapping mapping;
185 params.InitBlobFieldMapping(mapping, version);
187 os << KY_LOG_SMALL_TITLE_BEGIN(
"",
"GeneratorParameters Info");
190 os << KY_LOG_SMALL_TITLE_END(
"",
"GeneratorParameters Info");
195 class GeneratorParametersBlobBuilder :
public BaseBlobBuilder<GeneratorParametersBlob>
201 virtual void DoBuild();
203 const GeneratorParameters* m_params;
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 BlobHandler class is a top-level mechanism for serializing blobs between objects in memory and fi...
Definition: blobhandler.h:45
#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
This class provides information about Gameware Navigation version.
Definition: version.h:20
The GeneratorAdvancedParameters class is used by the GeneratorParameters class to maintain a set of c...
Definition: generatoradvancedparameters.h:34
Definition: gamekitcrowddispersion.h:20
The GeneratorParameters class contains configuration parameters that control the characteristics of t...
Definition: generatorparameters.h:75
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
BaseBlobBuilder is an abstract base class that builds a blob within a contiguous block of memory...
Definition: baseblobbuilder.h:30
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
This class gathers a set of generation parameters of one Database and manages the conversion between ...
Definition: databasegenmetrics.h:24
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43