Fix exposed methods missing arguments
This commit is contained in:
parent
0e10c2022f
commit
427de50ea1
|
@ -194,7 +194,7 @@ void BTPlayer::_bind_methods() {
|
|||
ADD_SIGNAL(MethodInfo("updated", PropertyInfo(Variant::INT, "p_status")));
|
||||
|
||||
#ifdef DEBUG_ENABLED
|
||||
ClassDB::bind_method(D_METHOD("_set_monitor_performance"), &BTPlayer::_set_monitor_performance);
|
||||
ClassDB::bind_method(D_METHOD("_set_monitor_performance", "p_value"), &BTPlayer::_set_monitor_performance);
|
||||
ClassDB::bind_method(D_METHOD("_get_monitor_performance"), &BTPlayer::_get_monitor_performance);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "monitor_performance"), "_set_monitor_performance", "_get_monitor_performance");
|
||||
ADD_PROPERTY_DEFAULT("monitor_performance", false);
|
||||
|
|
|
@ -48,9 +48,9 @@ void BTRandomWait::set_max_duration(double p_max_duration) {
|
|||
}
|
||||
|
||||
void BTRandomWait::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("set_min_duration"), &BTRandomWait::set_min_duration);
|
||||
ClassDB::bind_method(D_METHOD("set_min_duration", "p_value"), &BTRandomWait::set_min_duration);
|
||||
ClassDB::bind_method(D_METHOD("get_min_duration"), &BTRandomWait::get_min_duration);
|
||||
ClassDB::bind_method(D_METHOD("set_max_duration"), &BTRandomWait::set_max_duration);
|
||||
ClassDB::bind_method(D_METHOD("set_max_duration", "p_value"), &BTRandomWait::set_max_duration);
|
||||
ClassDB::bind_method(D_METHOD("get_max_duration"), &BTRandomWait::get_max_duration);
|
||||
|
||||
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "min_duration"), "set_min_duration", "get_min_duration");
|
||||
|
|
Loading…
Reference in New Issue