godot-cpp/src/core/RID.cpp

20 lines
240 B
C++
Raw Normal View History

2017-03-06 07:49:24 +00:00
#include "RID.hpp"
#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);
}
int32_t RID::get_rid() const
{
2017-05-23 21:03:57 +00:00
return godot_rid_get_id(&_godot_rid);
}
}