1
0
cuberite-2a/src/Generating/VerticalStrategy.h
Mattes D 187abe3f5e Gen: Moved PiecePool into a separate file.
Also rewritten the PieceGenerator to use std::unique_ptr.
2017-05-04 09:49:30 +02:00

26 lines
546 B
C

// VerticalStrategy.h
// Declares the public interface for cPiece's cVerticalStrategy implementations
#pragma once
#include "PiecePool.h"
/** Returns a new cPiece::cVerticalStrategy descendant based on the specified description.
a_StrategyDesc is in the format "<StrategyClass>|<Params>". The params and the pipe may be omitted.
If an unknown class is requested or the param parsing fails, nullptr is returned. */
cPiece::cVerticalStrategyPtr CreateVerticalStrategyFromString(const AString & a_StrategyDesc, bool a_LogWarnings);