27 int a_GridX,
int a_GridZ,
28 int a_OriginX,
int a_OriginZ,
std::vector< cPlacedPiecePtr > cPlacedPieces
The interface that is used to query terrain height from the shape generator.
Represents a single structure that occupies the grid point.
Represents a single piece that has been placed to specific coords in the world.
void PlacePieceOnGround(cPlacedPiece &a_Piece)
Adjusts the Y coord of the given piece so that the piece is on the ground.
virtual void DrawIntoChunk(cChunkDesc &a_Chunk) override
Draws self into the specified chunk.
cPlacedPieces m_Pieces
The pieces placed by the generator.
cPrefabStructure(int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ, cPlacedPieces &&a_Pieces, cTerrainHeightGen &a_HeightGen)
cTerrainHeightGen & m_HeightGen
The height generator used when adjusting pieces onto the ground.