godot-cpp/include/core/RID.hpp

37 lines
590 B
C++
Raw Normal View History

2017-03-03 02:48:27 +00:00
#ifndef RID_H
#define RID_H
2017-10-03 10:37:34 +00:00
#include <gdnative/rid.h>
2017-03-03 02:48:27 +00:00
namespace godot {
class Object;
class RID {
2017-03-03 02:48:27 +00:00
godot_rid _godot_rid;
public:
RID();
2017-03-06 07:49:24 +00:00
RID(Object *p);
int32_t get_rid() const;
inline bool is_valid() const {
// is_valid() is not available in the C API...
return *this == RID();
}
bool operator==(const RID & p_other) const;
bool operator!=(const RID & p_other) const;
bool operator<(const RID & p_other) const;
bool operator>(const RID & p_other) const;
bool operator<=(const RID & p_other) const;
bool operator>=(const RID & p_other) const;
2017-03-03 02:48:27 +00:00
};
}
#endif // RID_H