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

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

Functions

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

Detailed Description

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

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_Range, they are left unchanged if the range value is not present in the string.

Function Documentation

◆ ParseRange()

static bool VerticalStrategy::ParseRange ( const AString a_Params,
int &  a_Min,
int &  a_Range,
bool  a_LogWarnings 
)
static

Definition at line 28 of file VerticalStrategy.cpp.