diff options
author | Karroffel <therzog@mail.de> | 2017-05-12 21:53:07 +0200 |
---|---|---|
committer | Karroffel <therzog@mail.de> | 2017-05-12 21:53:07 +0200 |
commit | cf30b0f39ddb2c6acad5d22655c4bca9015d7502 (patch) | |
tree | 45a4df6ff16450b334d6c8856a74f4f47f3e9336 /include/core/RID.hpp | |
parent | 3969bcf07857b1a4af391bbddb924388cc7f44bb (diff) | |
download | redot-cpp-cf30b0f39ddb2c6acad5d22655c4bca9015d7502.tar.gz |
rewrote binding generator in python
Diffstat (limited to 'include/core/RID.hpp')
-rw-r--r-- | include/core/RID.hpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/include/core/RID.hpp b/include/core/RID.hpp new file mode 100644 index 0000000..634b7f0 --- /dev/null +++ b/include/core/RID.hpp @@ -0,0 +1,35 @@ +#ifndef RID_H +#define RID_H + +#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 + +#include <godot/godot_rid.h> + +namespace godot { + +class Object; + +class GD_CPP_CORE_API RID { + godot_rid _godot_rid; +public: + + inline RID() {} + + RID(Object *p); + + int32_t get_rid() const; + + ~RID(); +}; + +} + +#endif // RID_H |