summaryrefslogtreecommitdiffstats
path: root/src/core/RID.cpp
blob: 2343475e271beec95f8c52f056b7bd6eaebf6dce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);
}


}