RID.hpp 456 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef RID_H
  2. #define RID_H
  3. #if defined(_WIN32)
  4. # ifdef _GD_CPP_CORE_API_IMPL
  5. # define GD_CPP_CORE_API __declspec(dllexport)
  6. # else
  7. # define GD_CPP_CORE_API __declspec(dllimport)
  8. # endif
  9. #else
  10. # define GD_CPP_CORE_API
  11. #endif
  12. #include <godot/godot_rid.h>
  13. namespace godot {
  14. class Object;
  15. class GD_CPP_CORE_API RID {
  16. godot_rid _godot_rid;
  17. public:
  18. inline RID() {}
  19. RID(Object *p);
  20. int32_t get_rid() const;
  21. ~RID();
  22. };
  23. }
  24. #endif // RID_H