Cuberite
A lightweight, fast and extensible game server for Minecraft
Functions
VerticalLimit Namespace Reference

Parses a string containing a range in which both values are optional ("<MinHeight>|<MaxHeight>") into Min, Max. More...

Functions

static bool ParseRange (const AString &a_Params, int &a_Min, int &a_Max, bool a_LogWarnings)
 

Detailed Description

Parses a string containing a range in which both values are optional ("<MinHeight>|<MaxHeight>") into Min, Max.

Returns true if successful, false on failure. If a_LogWarnings is true, outputs failure reasons to console. The range is returned in a_Min and a_Max. If no value is in the string, both values are left unchanged. If only the minimum is in the string, it is assigned to both a_Min and a_Max.

Function Documentation

◆ ParseRange()

static bool VerticalLimit::ParseRange ( const AString a_Params,
int &  a_Min,
int &  a_Max,
bool  a_LogWarnings 
)
static

Definition at line 19 of file VerticalLimit.cpp.