Fix wrong method binds and registered class
(cherry picked from commit 2f3328a039
)
This commit is contained in:
parent
cab4921477
commit
39f1a110a1
|
@ -249,6 +249,11 @@ void ClassDB::set_current_api(APIType p_api) {
|
||||||
current_api = p_api;
|
current_api = p_api;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ClassDB::APIType ClassDB::get_current_api() {
|
||||||
|
|
||||||
|
return current_api;
|
||||||
|
}
|
||||||
|
|
||||||
HashMap<StringName, ClassDB::ClassInfo> ClassDB::classes;
|
HashMap<StringName, ClassDB::ClassInfo> ClassDB::classes;
|
||||||
HashMap<StringName, StringName> ClassDB::resource_base_extensions;
|
HashMap<StringName, StringName> ClassDB::resource_base_extensions;
|
||||||
HashMap<StringName, StringName> ClassDB::compat_classes;
|
HashMap<StringName, StringName> ClassDB::compat_classes;
|
||||||
|
|
|
@ -371,6 +371,7 @@ public:
|
||||||
static void init();
|
static void init();
|
||||||
|
|
||||||
static void set_current_api(APIType p_api);
|
static void set_current_api(APIType p_api);
|
||||||
|
static APIType get_current_api();
|
||||||
static void cleanup();
|
static void cleanup();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -192,7 +192,7 @@ MonoBoolean godot_icall_DynamicGodotObject_InvokeMember(Object *p_ptr, MonoStrin
|
||||||
|
|
||||||
*r_result = GDMonoMarshal::variant_to_mono_object(result);
|
*r_result = GDMonoMarshal::variant_to_mono_object(result);
|
||||||
|
|
||||||
return error.error == OK;
|
return error.error == Variant::CallError::CALL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
MonoBoolean godot_icall_DynamicGodotObject_GetMember(Object *p_ptr, MonoString *p_name, MonoObject **r_result) {
|
MonoBoolean godot_icall_DynamicGodotObject_GetMember(Object *p_ptr, MonoString *p_name, MonoObject **r_result) {
|
||||||
|
|
|
@ -679,7 +679,7 @@ void AnimatedSprite::_bind_methods() {
|
||||||
ClassDB::bind_method(D_METHOD("_set_playing", "playing"), &AnimatedSprite::_set_playing);
|
ClassDB::bind_method(D_METHOD("_set_playing", "playing"), &AnimatedSprite::_set_playing);
|
||||||
ClassDB::bind_method(D_METHOD("_is_playing"), &AnimatedSprite::_is_playing);
|
ClassDB::bind_method(D_METHOD("_is_playing"), &AnimatedSprite::_is_playing);
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("play", "anim", "backwards"), &AnimatedSprite::play, DEFVAL(StringName()));
|
ClassDB::bind_method(D_METHOD("play", "anim", "backwards"), &AnimatedSprite::play, DEFVAL(StringName()), DEFVAL(false));
|
||||||
ClassDB::bind_method(D_METHOD("stop"), &AnimatedSprite::stop);
|
ClassDB::bind_method(D_METHOD("stop"), &AnimatedSprite::stop);
|
||||||
ClassDB::bind_method(D_METHOD("is_playing"), &AnimatedSprite::is_playing);
|
ClassDB::bind_method(D_METHOD("is_playing"), &AnimatedSprite::is_playing);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue