You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-28 16:07:14 +00:00
replaced :var by :Variant in documentation, fixes #2897
This commit is contained in:
@@ -1307,7 +1307,7 @@ MethodInfo GDFunctions::get_info(Function p_func) {
|
||||
} break;
|
||||
case STR_TO_VAR: {
|
||||
|
||||
MethodInfo mi("str2var:var",PropertyInfo(Variant::STRING,"string"));
|
||||
MethodInfo mi("str2var:Variant",PropertyInfo(Variant::STRING,"string"));
|
||||
mi.return_val.type=Variant::NIL;
|
||||
return mi;
|
||||
} break;
|
||||
@@ -1338,7 +1338,7 @@ MethodInfo GDFunctions::get_info(Function p_func) {
|
||||
} break;
|
||||
case HASH: {
|
||||
|
||||
MethodInfo mi("hash",PropertyInfo(Variant::NIL,"var:var"));
|
||||
MethodInfo mi("hash",PropertyInfo(Variant::NIL,"var:Variant"));
|
||||
mi.return_val.type=Variant::INT;
|
||||
return mi;
|
||||
} break;
|
||||
|
||||
@@ -1370,7 +1370,7 @@ Variant GDFunctionState::resume(const Variant& p_arg) {
|
||||
|
||||
void GDFunctionState::_bind_methods() {
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("resume:var","arg"),&GDFunctionState::resume,DEFVAL(Variant()));
|
||||
ObjectTypeDB::bind_method(_MD("resume:Variant","arg"),&GDFunctionState::resume,DEFVAL(Variant()));
|
||||
ObjectTypeDB::bind_method(_MD("is_valid"),&GDFunctionState::is_valid);
|
||||
ObjectTypeDB::bind_native_method(METHOD_FLAGS_DEFAULT,"_signal_callback",&GDFunctionState::_signal_callback,MethodInfo("_signal_callback"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user