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, Range. More...
Functions | |
static bool | ParseRange (const AString &a_Params, int &a_Min, int &a_Range, bool a_LogWarnings) |
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.
|
static |
Definition at line 28 of file VerticalStrategy.cpp.