2017-03-06 07:49:24 +00:00
|
|
|
#include "RID.hpp"
|
2017-03-06 02:30:46 +00:00
|
|
|
|
|
|
|
#include <godot/godot_rid.h>
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|