godot-cpp/include/godot_cpp/core/RID.hpp

36 lines
456 B
C++
Raw Normal View History

2017-03-03 02:48:27 +00:00
#ifndef RID_H
#define RID_H
2017-03-15 22:19:58 +00:00
#if defined(_WIN32)
# ifdef _GD_CPP_CORE_API_IMPL
# define GD_CPP_CORE_API __declspec(dllexport)
# else
# define GD_CPP_CORE_API __declspec(dllimport)
# endif
#else
# define GD_CPP_CORE_API
#endif
2017-03-03 02:48:27 +00:00
#include <godot/godot_rid.h>
namespace godot {
class Object;
2017-03-15 22:19:58 +00:00
class GD_CPP_CORE_API RID {
2017-03-03 02:48:27 +00:00
godot_rid _godot_rid;
public:
2017-03-06 07:49:24 +00:00
inline RID() {}
RID(Object *p);
int32_t get_rid() const;
~RID();
2017-03-03 02:48:27 +00:00
};
}
#endif // RID_H