summaryrefslogtreecommitdiffstats
path: root/src/core/RID.cpp
diff options
context:
space:
mode:
authorThomas Herzog <thomas.herzog@mail.com>2017-10-24 19:28:06 +0200
committerGitHub <noreply@github.com>2017-10-24 19:28:06 +0200
commite72f4beec1b091edf6f16a0fe27d5ed13ca450c2 (patch)
treeb6fdcdb52158c0343f161f15887f6319a53a4c1c /src/core/RID.cpp
parentf24ecfc74d2f60c597cef6d98e23accfb358a90e (diff)
parent6452ba6e884885b98884aad3bc38ba2560cddb19 (diff)
downloadredot-cpp-e72f4beec1b091edf6f16a0fe27d5ed13ca450c2.tar.gz
Merge pull request #47 from BastiaanOlij/add_api_struct
Implemented using api struct
Diffstat (limited to 'src/core/RID.cpp')
-rw-r--r--src/core/RID.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/RID.cpp b/src/core/RID.cpp
index 12b4a2e..05f2931 100644
--- a/src/core/RID.cpp
+++ b/src/core/RID.cpp
@@ -2,17 +2,19 @@
#include <gdnative/rid.h>
+#include "GodotGlobal.hpp"
+
namespace godot {
RID::RID(Object *p)
{
- 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
{
- return godot_rid_get_id(&_godot_rid);
+ return godot::api->godot_rid_get_id(&_godot_rid);
}