diff options
author | Fredia Huya-Kouadio <fhuyakou@gmail.com> | 2020-08-04 09:42:00 -0700 |
---|---|---|
committer | Fredia Huya-Kouadio <fhuyakou@gmail.com> | 2020-08-23 14:11:47 -0700 |
commit | 31b0ca80d546f66262c961e28ce538e7ed2a0f0b (patch) | |
tree | 237ab3fcd50f0665e90ab21d1e09f401bba4e1ca /src/core/RID.cpp | |
parent | cd69b58bb6a9c804e27054b6e29a136453a00f04 (diff) | |
download | redot-cpp-31b0ca80d546f66262c961e28ce538e7ed2a0f0b.tar.gz |
Additions to the library to support the ARCore plugin
Diffstat (limited to 'src/core/RID.cpp')
-rw-r--r-- | src/core/RID.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/RID.cpp b/src/core/RID.cpp index 7ca1e7a..5854806 100644 --- a/src/core/RID.cpp +++ b/src/core/RID.cpp @@ -14,7 +14,11 @@ RID::RID(Object *p) { godot::api->godot_rid_new_with_resource(&_godot_rid, (const godot_object *)p); } -int32_t RID::get_rid() const { +godot_rid RID::_get_godot_rid() const { + return _godot_rid; +} + +int32_t RID::get_id() const { return godot::api->godot_rid_get_id(&_godot_rid); } |