From 469e9da86ca374c051e31524cd4059feea2aa3cb Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Sun, 23 Aug 2020 21:32:05 +0100 Subject: [PATCH] Rename `RID::get_rid()` => `get_id()` to match Godot --- include/core/RID.hpp | 2 +- src/core/RID.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/core/RID.hpp b/include/core/RID.hpp index d89823b6..3b3ce809 100644 --- a/include/core/RID.hpp +++ b/include/core/RID.hpp @@ -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... diff --git a/src/core/RID.cpp b/src/core/RID.cpp index 7ca1e7a5..5391f6ee 100644 --- a/src/core/RID.cpp +++ b/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); } -int32_t RID::get_rid() const { +int32_t RID::get_id() const { return godot::api->godot_rid_get_id(&_godot_rid); }