Rename and expose RefCounted::get_reference_count()

This commit is contained in:
Marc Gilleron
2022-09-19 15:45:45 +01:00
parent 908795301b
commit 474cee7daf
7 changed files with 18 additions and 11 deletions

View File

@@ -48,9 +48,10 @@ void RefCounted::_bind_methods() {
ClassDB::bind_method(D_METHOD("init_ref"), &RefCounted::init_ref);
ClassDB::bind_method(D_METHOD("reference"), &RefCounted::reference);
ClassDB::bind_method(D_METHOD("unreference"), &RefCounted::unreference);
ClassDB::bind_method(D_METHOD("get_reference_count"), &RefCounted::get_reference_count);
}
int RefCounted::reference_get_count() const {
int RefCounted::get_reference_count() const {
return refcount.get();
}