2017-03-06 07:49:24 +00:00
|
|
|
#include "RID.hpp"
|
2017-03-06 02:30:46 +00:00
|
|
|
|
2017-10-03 10:37:34 +00:00
|
|
|
#include <gdnative/rid.h>
|
2017-03-06 02:30:46 +00:00
|
|
|
|
|
|
|
namespace godot {
|
|
|
|
|
|
|
|
|
|
|
|
RID::RID(Object *p)
|
|
|
|
{
|
2017-05-23 21:03:57 +00:00
|
|
|
godot_rid_new_with_resource(&_godot_rid, (const godot_object *) p);
|
2017-03-06 02:30:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int32_t RID::get_rid() const
|
|
|
|
{
|
2017-05-23 21:03:57 +00:00
|
|
|
return godot_rid_get_id(&_godot_rid);
|
2017-03-06 02:30:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|