Cuberite
A lightweight, fast and extensible game server for Minecraft
|
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) |
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.
|
static |
Definition at line 19 of file VerticalLimit.cpp.