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

pull/447/head
Marc Gilleron 2020-08-23 21:32:05 +01:00
parent 19fa40591b
commit 469e9da86c
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -14,7 +14,7 @@ RID::RID(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);
}