Cuberite
A lightweight, fast and extensible game server for Minecraft
Functions
VerticalLimit.h File Reference
#include "PiecePool.h"
Include dependency graph for VerticalLimit.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

cPiece::cVerticalLimitPtr CreateVerticalLimitFromString (const AString &a_LimitDesc, bool a_LogWarnings)
 Returns a new cPiece::cVerticalLimit descendant based on the specified description. More...
 

Function Documentation

◆ CreateVerticalLimitFromString()

cPiece::cVerticalLimitPtr CreateVerticalLimitFromString ( const AString a_LimitDesc,
bool  a_LogWarnings 
)

Returns a new cPiece::cVerticalLimit descendant based on the specified description.

a_LimitDesc is in the format "<LimitClass>|<Params>". The params and the pipe may be omitted. If an unknown class is requested or the param parsing fails, nullptr is returned. If a_LogWarnings is true, any problem is reported into the server console.

Definition at line 343 of file VerticalLimit.cpp.