godot-cpp/src/core/RID.cpp
2017-10-03 16:07:34 +05:30

20 lines
237 B
C++

#include "RID.hpp"
#include <gdnative/rid.h>
namespace godot {
RID::RID(Object *p)
{
godot_rid_new_with_resource(&_godot_rid, (const godot_object *) p);
}
int32_t RID::get_rid() const
{
return godot_rid_get_id(&_godot_rid);
}
}