diff options
Diffstat (limited to 'include/godot_cpp/core/RID.cpp')
-rw-r--r-- | include/godot_cpp/core/RID.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/godot_cpp/core/RID.cpp b/include/godot_cpp/core/RID.cpp new file mode 100644 index 0000000..7444e55 --- /dev/null +++ b/include/godot_cpp/core/RID.cpp @@ -0,0 +1,24 @@ +#include "RID.h" + +#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); +} + + +} |