Merge pull request #447 from Zylann/rename_rid_get_id

Rename `RID::get_rid()` => `get_id()` to match Godot
pull/451/head
Marc 2020-08-30 22:45:17 +01:00 committed by GitHub
commit 3f72f5a842
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}