Browse Source

Rename `RID::get_rid()` => `get_id()` to match Godot

Marc Gilleron 5 years ago
parent
commit
469e9da86c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      include/core/RID.hpp
  2. 1 1
      src/core/RID.cpp

+ 1 - 1
include/core/RID.hpp

@@ -15,7 +15,7 @@ public:
 
 
 	RID(Object *p);
 	RID(Object *p);
 
 
-	int32_t get_rid() const;
+	int32_t get_id() const;
 
 
 	inline bool is_valid() const {
 	inline bool is_valid() const {
 		// is_valid() is not available in the C API...
 		// is_valid() is not available in the C API...

+ 1 - 1
src/core/RID.cpp

@@ -14,7 +14,7 @@ RID::RID(Object *p) {
 	godot::api->godot_rid_new_with_resource(&_godot_rid, (const godot_object *)p);
 	godot::api->godot_rid_new_with_resource(&_godot_rid, (const godot_object *)p);
 }
 }
 
 
-int32_t RID::get_rid() const {
+int32_t RID::get_id() const {
 	return godot::api->godot_rid_get_id(&_godot_rid);
 	return godot::api->godot_rid_get_id(&_godot_rid);
 }
 }