summaryrefslogtreecommitdiffstats
path: root/src/core/RID.cpp
diff options
context:
space:
mode:
authorKarroffel <therzog@mail.de>2017-05-12 21:53:07 +0200
committerKarroffel <therzog@mail.de>2017-05-12 21:53:07 +0200
commitcf30b0f39ddb2c6acad5d22655c4bca9015d7502 (patch)
tree45a4df6ff16450b334d6c8856a74f4f47f3e9336 /src/core/RID.cpp
parent3969bcf07857b1a4af391bbddb924388cc7f44bb (diff)
downloadredot-cpp-cf30b0f39ddb2c6acad5d22655c4bca9015d7502.tar.gz
rewrote binding generator in python
Diffstat (limited to 'src/core/RID.cpp')
-rw-r--r--src/core/RID.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/core/RID.cpp b/src/core/RID.cpp
new file mode 100644
index 0000000..2343475
--- /dev/null
+++ b/src/core/RID.cpp
@@ -0,0 +1,24 @@
+#include "RID.hpp"
+
+#include <godot/godot_rid.h>
+
+namespace godot {
+
+
+RID::RID(Object *p)
+{
+ godot_rid_new(&_godot_rid, p);
+}
+
+int32_t RID::get_rid() const
+{
+ return godot_rid_get_rid(&_godot_rid);
+}
+
+RID::~RID()
+{
+ godot_rid_destroy(&_godot_rid);
+}
+
+
+}