Renamed the bind_native functions to bind_vararg, should make it show the documentation more clearly and also make it easier to bind to C#
This commit is contained in:
parent
19bd661a8f
commit
828e1c092f
13 changed files with 55 additions and 60 deletions
|
|
@ -61,11 +61,7 @@ void FuncRef::_bind_methods() {
|
|||
MethodInfo mi;
|
||||
mi.name="call_func";
|
||||
Vector<Variant> defargs;
|
||||
for(int i=0;i<10;i++) {
|
||||
mi.arguments.push_back( PropertyInfo( Variant::NIL, "arg"+itos(i)));
|
||||
defargs.push_back(Variant());
|
||||
}
|
||||
ObjectTypeDB::bind_native_method(METHOD_FLAGS_DEFAULT,"call_func:Variant",&FuncRef::call_func,mi,defargs);
|
||||
ObjectTypeDB::bind_vararg_method(METHOD_FLAGS_DEFAULT,"call_func:Variant",&FuncRef::call_func,mi,defargs);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue