FML Update

This commit is contained in:
Steffen Schröder
2014-02-16 13:59:28 +01:00
parent c935cf9cac
commit ac1ea81b94
6 changed files with 80 additions and 11 deletions

View File

@ -47,4 +47,18 @@ abstract class Builder {
if (!fmod($value, 1)) $stringVal .= '.';
return $stringVal;
}
/**
* Get the Boolean String-Representation of the given Value
*
* @param bool $value The Value to convert to a ManiaScript Boolean
* @return string
*/
public static function getBoolean($value) {
$bool = (bool) $value;
if ($bool) {
return "True";
}
return "False";
}
}