gwnavgeneration/input/spatializedsectorinput.h Source File
Go to the documentation of this file.
20 class GeneratorSystem;
22 class TaggedTriangle3i;
23 class SectorInputData;
57 class DynInputCellArrayAtTilePos
61 DynInputCellArrayAtTilePos(
KyInt32 x,
KyInt32 y) : m_x(x), m_y(y) {}
62 KyArrayPOD<DynamicInputCell*> m_dynInputCells;
68 class TilePartFileNameArrayAtTilePos
72 TilePartFileNameArrayAtTilePos(
KyInt32 x,
KyInt32 y) : m_x(x), m_y(y) {}
73 KyArray<String> m_filenames;
87 class SpatializedSectorInput
92 SpatializedSectorInput(GeneratorSystem* sys);
94 ~SpatializedSectorInput() { ClearAll(); }
96 void SetName(
const String& name) { m_sectorName = name; }
98 void SetInputTileFlushSize(
KyUInt32 inputTileFlushSize) { m_inputTilesFlushSize = inputTileFlushSize; }
102 ClearCellAndTileGrids();
103 ClearFlushedTiledFileNames();
106 void ClearCellAndTileGrids();
108 void ClearFlushedTiledFileNames();
110 void PushTriangle(
const DynamicTaggedTriangle3i& inputTriangle);
112 DynamicInputCell* GetCell(
CellCoord x,
CellCoord y) {
return m_dynInputCellGrid.Get(x, y); }
114 DynamicInputCell** GetCells() {
return m_dynInputCellGrid.GetElements(); }
116 KyUInt32 GetCellsCount()
const {
return m_dynInputCellGrid.GetElementsCount(); }
120 void RemovePartsTempDirectory();
123 String GetTilePartDirName();
127 GeneratorSystem* m_sys;
132 DenseGridAndArrayOfRawPtr<DynamicInputCell> m_dynInputCellGrid;
134 DenseGridAndArrayOfRawPtr<DynInputCellArrayAtTilePos> m_dynInputCellArrayTileGrid;
135 DenseGridAndArrayOfRawPtr<TilePartFileNameArrayAtTilePos> m_tilePartFileNameArrayTileGrid;
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
Navigation return code class.
Definition: types.h:108
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
std::int32_t KyInt32
int32_t
Definition: types.h:24
KyInt32 CellCoord
A type that represents the placement of a cell on one axis of a 2D grid.
Definition: navmeshtypes.h:29