From 187abe3f5e2219e0a80c0cdca4db362e223b60ae Mon Sep 17 00:00:00 2001 From: Mattes D Date: Sun, 26 Feb 2017 22:49:23 +0100 Subject: Gen: Moved PiecePool into a separate file. Also rewritten the PieceGenerator to use std::unique_ptr. --- src/Generating/PrefabStructure.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/Generating/PrefabStructure.h') diff --git a/src/Generating/PrefabStructure.h b/src/Generating/PrefabStructure.h index 29a506494..423408396 100644 --- a/src/Generating/PrefabStructure.h +++ b/src/Generating/PrefabStructure.h @@ -10,7 +10,7 @@ #pragma once #include "GridStructGen.h" -#include "PieceGenerator.h" +#include "PiecePool.h" @@ -25,12 +25,10 @@ public: cPrefabStructure( int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ, - cPlacedPieces & a_Pieces, + cPlacedPieces && a_Pieces, cTerrainHeightGenPtr a_HeightGen ); - virtual ~cPrefabStructure(); - protected: /** The pieces placed by the generator. */ cPlacedPieces m_Pieces; -- cgit v1.2.3