1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Changed/Added descriptions in @GDScript. Added examples. Fixed return types of two … (#11146)

Doc: Improved descriptions in GDScript docs

Added examples and fixed return types of two methods.
This commit is contained in:
William Taylor
2017-09-12 06:00:29 -07:00
committed by Rémi Verschelde
parent d6fa5e302c
commit 8632408dbd
2 changed files with 245 additions and 36 deletions

View File

@@ -1420,12 +1420,12 @@ MethodInfo GDFunctions::get_info(Function p_func) {
} break;
case MATH_ISNAN: {
MethodInfo mi("is_nan", PropertyInfo(Variant::REAL, "s"));
mi.return_val.type = Variant::REAL;
mi.return_val.type = Variant::BOOL;
return mi;
} break;
case MATH_ISINF: {
MethodInfo mi("is_inf", PropertyInfo(Variant::REAL, "s"));
mi.return_val.type = Variant::REAL;
mi.return_val.type = Variant::BOOL;
return mi;
} break;
case MATH_EASE: {