diff options
| author | Karroffel <therzog@mail.de> | 2017-03-06 08:49:24 +0100 |
|---|---|---|
| committer | Karroffel <therzog@mail.de> | 2017-03-06 08:49:24 +0100 |
| commit | 632c953e4211eeddf9932918a26f0d2101c3fc38 (patch) | |
| tree | 34f11acb2246c6ddc0d49e436daafb2cfc22069d /include/godot_cpp | |
| parent | 92e1f553ec7b6c609a8503a0d9bbf21f236a9805 (diff) | |
| download | redot-cpp-632c953e4211eeddf9932918a26f0d2101c3fc38.tar.gz | |
buuunch of stuff
Diffstat (limited to 'include/godot_cpp')
| -rw-r--r-- | include/godot_cpp/Godot.h | 267 | ||||
| -rw-r--r-- | include/godot_cpp/core/Array.cpp | 4 | ||||
| -rw-r--r-- | include/godot_cpp/core/Array.hpp (renamed from include/godot_cpp/core/Array.h) | 2 | ||||
| -rw-r--r-- | include/godot_cpp/core/Basis.cpp | 10 | ||||
| -rw-r--r-- | include/godot_cpp/core/Basis.hpp (renamed from include/godot_cpp/core/Basis.h) | 4 | ||||
| -rw-r--r-- | include/godot_cpp/core/Color.cpp | 4 | ||||
| -rw-r--r-- | include/godot_cpp/core/Color.hpp (renamed from include/godot_cpp/core/Color.h) | 2 | ||||
| -rw-r--r-- | include/godot_cpp/core/CoreTypes.h | 27 | ||||
| -rw-r--r-- | include/godot_cpp/core/CoreTypes.hpp | 27 | ||||
| -rw-r--r-- | include/godot_cpp/core/Defs.hpp (renamed from include/godot_cpp/core/Defs.h) | 0 | ||||
| -rw-r--r-- | include/godot_cpp/core/Dictionary.cpp | 6 | ||||
| -rw-r--r-- | include/godot_cpp/core/Dictionary.hpp (renamed from include/godot_cpp/core/Dictionary.h) | 4 | ||||
| -rw-r--r-- | include/godot_cpp/core/Image.cpp | 14 | ||||
| -rw-r--r-- | include/godot_cpp/core/Image.hpp (renamed from include/godot_cpp/core/Image.h) | 10 | ||||
| -rw-r--r-- | include/godot_cpp/core/InputEvent.cpp | 8 | ||||
| -rw-r--r-- | include/godot_cpp/core/InputEvent.hpp (renamed from include/godot_cpp/core/InputEvent.h) | 2 | ||||
| -rw-r--r-- | include/godot_cpp/core/NodePath.cpp | 4 | ||||
| -rw-r--r-- | include/godot_cpp/core/NodePath.hpp (renamed from include/godot_cpp/core/NodePath.h) | 2 | ||||
| -rw-r--r-- | include/godot_cpp/core/Plane.cpp | 4 | ||||
| -rw-r--r-- | include/godot_cpp/core/Plane.hpp (renamed from include/godot_cpp/core/Plane.h) | 2 | ||||
| -rw-r--r-- | include/godot_cpp/core/PoolArrays.cpp | 12 | ||||
| -rw-r--r-- | include/godot_cpp/core/PoolArrays.hpp (renamed from include/godot_cpp/core/PoolArrays.h) | 10 | ||||
| -rw-r--r-- | include/godot_cpp/core/Quat.cpp | 8 | ||||
| -rw-r--r-- | include/godot_cpp/core/Quat.hpp (renamed from include/godot_cpp/core/Quat.h) | 2 | ||||
| -rw-r--r-- | include/godot_cpp/core/RID.cpp | 2 | ||||
| -rw-r--r-- | include/godot_cpp/core/RID.hpp (renamed from include/godot_cpp/core/RID.h) | 2 | ||||
| -rw-r--r-- | include/godot_cpp/core/Rect2.cpp | 8 | ||||
| -rw-r--r-- | include/godot_cpp/core/Rect2.hpp (renamed from include/godot_cpp/core/Rect2.h) | 2 | ||||
| -rw-r--r-- | include/godot_cpp/core/Rect3.cpp | 6 | ||||
| -rw-r--r-- | include/godot_cpp/core/Rect3.hpp (renamed from include/godot_cpp/core/Rect3.h) | 4 | ||||
| -rw-r--r-- | include/godot_cpp/core/String.cpp | 2 | ||||
| -rw-r--r-- | include/godot_cpp/core/String.hpp (renamed from include/godot_cpp/core/String.h) | 0 | ||||
| -rw-r--r-- | include/godot_cpp/core/Transform.cpp | 10 | ||||
| -rw-r--r-- | include/godot_cpp/core/Transform.hpp (renamed from include/godot_cpp/core/Transform.h) | 6 | ||||
| -rw-r--r-- | include/godot_cpp/core/Transform2D.cpp | 8 | ||||
| -rw-r--r-- | include/godot_cpp/core/Transform2D.hp (renamed from include/godot_cpp/core/Transform2D.h) | 2 | ||||
| -rw-r--r-- | include/godot_cpp/core/Variant.cpp | 6 | ||||
| -rw-r--r-- | include/godot_cpp/core/Variant.hpp (renamed from include/godot_cpp/core/Variant.h) | 36 | ||||
| -rw-r--r-- | include/godot_cpp/core/Vector2.cpp | 4 | ||||
| -rw-r--r-- | include/godot_cpp/core/Vector2.hpp (renamed from include/godot_cpp/core/Vector2.h) | 2 | ||||
| -rw-r--r-- | include/godot_cpp/core/Vector3.cpp | 6 | ||||
| -rw-r--r-- | include/godot_cpp/core/Vector3.hpp (renamed from include/godot_cpp/core/Vector3.h) | 4 |
42 files changed, 140 insertions, 405 deletions
diff --git a/include/godot_cpp/Godot.h b/include/godot_cpp/Godot.h deleted file mode 100644 index 337b096..0000000 --- a/include/godot_cpp/Godot.h +++ /dev/null @@ -1,267 +0,0 @@ -#ifndef GODOT_H -#define GODOT_H - -#include <cstdlib> - -#include <godot.h> - - -#include <godot_cpp/core/CoreTypes.h> -#include <godot_cpp/core/Variant.h> - -namespace godot { - - -#define GODOT_CLASS(Name, Base) \ - public: static char *___get_type_name() { return (char *) #Name; } \ - static char *___get_base_type_name() { return (char *) #Base; } \ - Name(godot_object *o) { __core_object = o; } \ - private: - - - -template<class A, class B> -A object_cast(B b) -{ - A *a = (A*) &b; - return *a; -} - - - - - -// instance and destroy funcs - -template<class T> -void *_godot_class_instance_func(godot_object *p) -{ - T *d = new T(p); - d->_init(); - return d; -} - -template<class T> -void _godot_class_destroy_func(godot_object *p, void *data) -{ - T *d = (T *) data; - delete d; -} - - - -template<class T> -void register_class() -{ - godot_script_register(T::___get_type_name(), T::___get_base_type_name(), _godot_class_instance_func<T>, _godot_class_destroy_func<T>); - T::_register_methods(); -} - - - - - - -// wrapped methods - -template<class T, class R, class A0, class A1, class A2, class A3, class A4, R (T::*p)(A0, A1, A2, A3, A4)> -struct WrappedMethod5 { - static godot_variant wrapped_method(godot_object *_, void *data, int num_args, godot_variant **args) - { - godot_variant _variant; - godot_variant_new_nil(&_variant); - godot::Variant *v = (godot::Variant *) &_variant; - T *obj = (T *) data; - godot::Variant **arg = (godot::Variant **) args; - *v = (obj->*p)(*arg[0], *arg[1], *arg[2], *arg[3], *arg[4]); - return _variant; - } -}; - -template<class T, class A0, class A1, class A2, class A3, class A4, void (T::*p)(A0, A1, A2, A3, A4)> -struct WrappedMethod5<T, void, A0, A1, A2, A3, A4, p> { - static godot_variant wrapped_method(godot_object *_, void *data, int num_args, godot_variant **args) - { - godot_variant _variant; - godot_variant_new_nil(&_variant); - T *obj = (T *) data; - godot::Variant **arg = (godot::Variant **) args; - (obj->*p)(*arg[0], *arg[1], *arg[2], *arg[3], *arg[4]); - return _variant; - } -}; - -template<class T, class R, class A0, class A1, class A2, class A3, R (T::*p)(A0, A1, A2, A3)> -struct WrappedMethod4 { - static godot_variant wrapped_method(godot_object *_, void *data, int num_args, godot_variant **args) - { - godot_variant _variant; - godot_variant_new_nil(&_variant); - godot::Variant *v = (godot::Variant *) &_variant; - T *obj = (T *) data; - godot::Variant **arg = (godot::Variant **) args; - *v = (obj->*p)(*arg[0], *arg[1], *arg[2], *arg[3]); - return _variant; - } -}; - -template<class T, class A0, class A1, class A2, class A3, void (T::*p)(A0, A1, A2, A3)> -struct WrappedMethod4<T, void, A0, A1, A2, A3, p> { - static godot_variant wrapped_method(godot_object *_, void *data, int num_args, godot_variant **args) - { - godot_variant _variant; - godot_variant_new_nil(&_variant); - T *obj = (T *) data; - godot::Variant **arg = (godot::Variant **) args; - (obj->*p)(*arg[0], *arg[1], *arg[2], *arg[3]); - return _variant; - } -}; - - -template<class T, class R, class A0, class A1, class A2, R (T::*p)(A0, A1, A2)> -struct WrappedMethod3 { - static godot_variant wrapped_method(godot_object *_, void *data, int num_args, godot_variant **args) - { - godot_variant _variant; - godot_variant_new_nil(&_variant); - godot::Variant *v = (godot::Variant *) &_variant; - T *obj = (T *) data; - godot::Variant **arg = (godot::Variant **) args; - *v = (obj->*p)(*arg[0], *arg[1], *arg[2]); - return _variant; - } -}; - -template<class T, class A0, class A1, class A2, void (T::*p)(A0, A1, A2)> -struct WrappedMethod3<T, void, A0, A1, A2, p> { - static godot_variant wrapped_method(godot_object *_, void *data, int num_args, godot_variant **args) - { - godot_variant _variant; - godot_variant_new_nil(&_variant); - T *obj = (T *) data; - godot::Variant **arg = (godot::Variant **) args; - (obj->*p)(*arg[0], *arg[1], *arg[2]); - return _variant; - } -}; - -template<class T, class R, class A0, class A1, R (T::*p)(A0, A1)> -struct WrappedMethod2 { - static godot_variant wrapped_method(godot_object *_, void *data, int num_args, godot_variant **args) - { - godot_variant _variant; - godot_variant_new_nil(&_variant); - godot::Variant *v = (godot::Variant *) &_variant; - T *obj = (T *) data; - godot::Variant **arg = (godot::Variant **) args; - *v = (obj->*p)(*arg[0], *arg[1]); - return _variant; - } -}; - -template<class T, class A0, class A1, void (T::*p)(A0, A1)> -struct WrappedMethod2<T, void, A0, A1, p> { - static godot_variant wrapped_method(godot_object *_, void *data, int num_args, godot_variant **args) - { - godot_variant _variant; - godot_variant_new_nil(&_variant); - T *obj = (T *) data; - godot::Variant **arg = (godot::Variant **) args; - (obj->*p)(*arg[0], *arg[1]); - return _variant; - } -}; - -template<class T, class R, class I, R (T::*p)(I)> -struct WrappedMethod1 { - static godot_variant wrapped_method(godot_object *_, void *data, int num_args, godot_variant **args) - { - godot_variant _variant; - godot_variant_new_nil(&_variant); - godot::Variant *v = (godot::Variant *) &_variant; - T *obj = (T *) data; - godot::Variant **arg = (godot::Variant **) args; - *v = (obj->*p)(*arg[0]); - return _variant; - } -}; - -template <class T, class I, void (T::*p)(I)> -struct WrappedMethod1<T, void, I, p> { - static godot_variant wrapped_method(godot_object *_, void *data, int num_args, godot_variant **args) - { - godot_variant _variant; - godot_variant_new_nil(&_variant); - T *obj = (T *) data; - godot::Variant **arg = (godot::Variant **) args; - (obj->*p)(*arg[0]); - return _variant; - } -}; - - - -template<class T, class R, R (T::*p)()> -struct WrappedMethod0 { - static godot_variant wrapped_method(godot_object *_, void *data, int num_args, godot_variant **args) - { - godot_variant _variant; - godot_variant_new_nil(&_variant); - godot::Variant *v = (godot::Variant *) &_variant; - T *obj = (T *) data; - *v = (obj->*p)(); - return _variant; - } -}; - -template<class T, void (T::*p)()> -struct WrappedMethod0<T, void, p> { - static godot_variant wrapped_method(godot_object *_, void *data, int num_args, godot_variant **args) - { - godot_variant _variant; - godot_variant_new_nil(&_variant); - T *obj = (T *) data; - (obj->*p)(); - return _variant; - } -}; - -// method registering - - -template<class T, class R, R (T::*p)()> -void register_method(char *name, godot_method_attributes attr = {}) { - godot_script_add_method(T::___get_type_name(), name, &attr, &WrappedMethod0<T, R, p>::wrapped_method); -} - -template<class T, class R, class A0, R (T::*p)(A0)> -void register_method(char *name, godot_method_attributes attr = {}) { - godot_script_add_method(T::___get_type_name(), name, &attr, &WrappedMethod1<T, R, A0, p>::wrapped_method); -} - -template<class T, class R, class A0, class A1, R (T::*p)(A0, A1)> -void register_method(char *name, godot_method_attributes attr = {}) { - godot_script_add_method(T::___get_type_name(), name, &attr, &WrappedMethod2<T, R, A0, A1, p>::wrapped_method); -} - -template<class T, class R, class A0, class A1, class A2, R (T::*p)(A0, A1, A2)> -void register_method(char *name, godot_method_attributes attr = {}) { - godot_script_add_method(T::___get_type_name(), name, &attr, &WrappedMethod3<T, R, A0, A1, A2, p>::wrapped_method); -} - -template<class T, class R, class A0, class A1, class A2, class A3, R (T::*p)(A0, A1, A2, A3)> -void register_method(char *name, godot_method_attributes attr = {}) { - godot_script_add_method(T::___get_type_name(), name, &attr, &WrappedMethod4<T, R, A0, A1, A2, A3, p>::wrapped_method); -} - - -template<class T, class R, class A0, class A1, class A2, class A3, class A4, R (T::*p)(A0, A1, A2, A3, A4)> -void register_method(char *name, godot_method_attributes attr = {}) { - godot_script_add_method(T::___get_type_name(), name, &attr, &WrappedMethod5<T, R, A0, A1, A2, A3, A4, p>::wrapped_method); -} - - -} - -#endif // GODOT_H diff --git a/include/godot_cpp/core/Array.cpp b/include/godot_cpp/core/Array.cpp index 2d66eb7..e610e1b 100644 --- a/include/godot_cpp/core/Array.cpp +++ b/include/godot_cpp/core/Array.cpp @@ -1,10 +1,10 @@ -#include "Array.h" +#include "Array.hpp" #include <cstdlib> #include <godot/godot_array.h> -#include "Variant.h" +#include "Variant.hpp" namespace godot { diff --git a/include/godot_cpp/core/Array.h b/include/godot_cpp/core/Array.hpp index 4f7a2b5..1b60788 100644 --- a/include/godot_cpp/core/Array.h +++ b/include/godot_cpp/core/Array.hpp @@ -3,7 +3,7 @@ #include <godot/godot_array.h> -#include "String.h" +#include "String.hpp" namespace godot { diff --git a/include/godot_cpp/core/Basis.cpp b/include/godot_cpp/core/Basis.cpp index 06a1937..691edaa 100644 --- a/include/godot_cpp/core/Basis.cpp +++ b/include/godot_cpp/core/Basis.cpp @@ -1,11 +1,11 @@ -#include "Basis.h" +#include "Basis.hpp" -#include "Defs.h" +#include "Defs.hpp" -#include "Vector3.h" +#include "Vector3.hpp" -#include "Quat.h" +#include "Quat.hpp" #include <algorithm> @@ -597,7 +597,7 @@ Basis::Basis(const Vector3& p_euler) { } -#include "Quat.h" +#include "Quat.hpp" namespace godot { diff --git a/include/godot_cpp/core/Basis.h b/include/godot_cpp/core/Basis.hpp index cb23874..018896a 100644 --- a/include/godot_cpp/core/Basis.h +++ b/include/godot_cpp/core/Basis.hpp @@ -1,9 +1,9 @@ #ifndef BASIS_H #define BASIS_H -#include "Defs.h" +#include "Defs.hpp" -#include "Vector3.h" +#include "Vector3.hpp" namespace godot { diff --git a/include/godot_cpp/core/Color.cpp b/include/godot_cpp/core/Color.cpp index 382575b..6d89cb8 100644 --- a/include/godot_cpp/core/Color.cpp +++ b/include/godot_cpp/core/Color.cpp @@ -1,10 +1,10 @@ -#include "Color.h" +#include "Color.hpp" #include <godot/godot_color.h> #include <cmath> -#include "String.h" +#include "String.hpp" namespace godot { diff --git a/include/godot_cpp/core/Color.h b/include/godot_cpp/core/Color.hpp index abad150..d0f834d 100644 --- a/include/godot_cpp/core/Color.h +++ b/include/godot_cpp/core/Color.hpp @@ -5,7 +5,7 @@ #include <cmath> -#include "String.h" +#include "String.hpp" namespace godot { diff --git a/include/godot_cpp/core/CoreTypes.h b/include/godot_cpp/core/CoreTypes.h deleted file mode 100644 index b268310..0000000 --- a/include/godot_cpp/core/CoreTypes.h +++ /dev/null @@ -1,27 +0,0 @@ -#ifndef CORETYPES_H -#define CORETYPES_H - -#include "Defs.h" - -#include "Array.h" -#include "Basis.h" -#include "Color.h" -#include "Dictionary.h" -#include "Image.h" -#include "InputEvent.h" -#include "NodePath.h" -#include "Plane.h" -#include "PoolArrays.h" -#include "Quat.h" -#include "Rect2.h" -#include "Rect3.h" -#include "RID.h" -#include "String.h" -#include "Transform.h" -#include "Transform2D.h" -#include "Variant.h" -#include "Vector2.h" -#include "Vector3.h" - - -#endif // CORETYPES_H diff --git a/include/godot_cpp/core/CoreTypes.hpp b/include/godot_cpp/core/CoreTypes.hpp new file mode 100644 index 0000000..5142b4f --- /dev/null +++ b/include/godot_cpp/core/CoreTypes.hpp @@ -0,0 +1,27 @@ +#ifndef CORETYPES_H +#define CORETYPES_H + +#include "Defs.hpp" + +#include "Array.hpp" +#include "Basis.hpp" +#include "Color.hpp" +#include "Dictionary.hpp" +#include "Image.hpp" +#include "InputEvent.hpp" +#include "NodePath.hpp" +#include "Plane.hpp" +#include "PoolArrays.hpp" +#include "Quat.hpp" +#include "Rect2.hpp" +#include "Rect3.hpp" +#include "RID.hpp" +#include "String.hpp" +#include "Transform.hpp" +#include "Transform2D.hp" +#include "Variant.hpp" +#include "Vector2.hpp" +#include "Vector3.hpp" + + +#endif // CORETYPES_H diff --git a/include/godot_cpp/core/Defs.h b/include/godot_cpp/core/Defs.hpp index cdb67a1..cdb67a1 100644 --- a/include/godot_cpp/core/Defs.h +++ b/include/godot_cpp/core/Defs.hpp diff --git a/include/godot_cpp/core/Dictionary.cpp b/include/godot_cpp/core/Dictionary.cpp index c2d828a..7ac6312 100644 --- a/include/godot_cpp/core/Dictionary.cpp +++ b/include/godot_cpp/core/Dictionary.cpp @@ -1,8 +1,8 @@ -#include "Dictionary.h" +#include "Dictionary.hpp" -#include "Variant.h" +#include "Variant.hpp" -#include "Array.h" +#include "Array.hpp" #include <godot/godot_dictionary.h> diff --git a/include/godot_cpp/core/Dictionary.h b/include/godot_cpp/core/Dictionary.hpp index d481e17..73a7966 100644 --- a/include/godot_cpp/core/Dictionary.h +++ b/include/godot_cpp/core/Dictionary.hpp @@ -1,9 +1,9 @@ #ifndef DICTIONARY_H #define DICTIONARY_H -#include "Variant.h" +#include "Variant.hpp" -#include "Array.h" +#include "Array.hpp" #include <godot/godot_dictionary.h> diff --git a/include/godot_cpp/core/Image.cpp b/include/godot_cpp/core/Image.cpp index be5c623..4206115 100644 --- a/include/godot_cpp/core/Image.cpp +++ b/include/godot_cpp/core/Image.cpp @@ -1,13 +1,13 @@ -#include "Image.h" +#include "Image.hpp" -#include "Defs.h" +#include "Defs.hpp" -#include "Vector2.h" -#include "Rect2.h" -#include "Color.h" -#include "String.h" +#include "Vector2.hpp" +#include "Rect2.hpp" +#include "Color.hpp" +#include "String.hpp" -#include "PoolArrays.h" +#include "PoolArrays.hpp" #include <godot/godot_image.h> diff --git a/include/godot_cpp/core/Image.h b/include/godot_cpp/core/Image.hpp index 1530910..5b1322e 100644 --- a/include/godot_cpp/core/Image.h +++ b/include/godot_cpp/core/Image.hpp @@ -1,12 +1,12 @@ #ifndef IMAGE_H #define IMAGE_H -#include "Defs.h" +#include "Defs.hpp" -#include "Vector2.h" -#include "Rect2.h" -#include "Color.h" -#include "String.h" +#include "Vector2.hpp" +#include "Rect2.hpp" +#include "Color.hpp" +#include "String.hpp" #include <godot/godot_image.h> diff --git a/include/godot_cpp/core/InputEvent.cpp b/include/godot_cpp/core/InputEvent.cpp index 9b2e7cb..35906bb 100644 --- a/include/godot_cpp/core/InputEvent.cpp +++ b/include/godot_cpp/core/InputEvent.cpp @@ -1,14 +1,14 @@ -#include "InputEvent.h" +#include "InputEvent.hpp" #include <cstdint> #include <memory.h> -#include "Vector2.h" -#include "Transform2D.h" +#include "Vector2.hpp" +#include "Transform2D.hp" #include <cmath> -#include "String.h" +#include "String.hpp" namespace godot { diff --git a/include/godot_cpp/core/InputEvent.h b/include/godot_cpp/core/InputEvent.hpp index c701f19..ef67817 100644 --- a/include/godot_cpp/core/InputEvent.h +++ b/include/godot_cpp/core/InputEvent.hpp @@ -4,7 +4,7 @@ #include <cstdint> #include <memory.h> -#include "String.h" +#include "String.hpp" namespace godot { diff --git a/include/godot_cpp/core/NodePath.cpp b/include/godot_cpp/core/NodePath.cpp index 5a30b2b..3dbfd4a 100644 --- a/include/godot_cpp/core/NodePath.cpp +++ b/include/godot_cpp/core/NodePath.cpp @@ -1,6 +1,6 @@ -#include "NodePath.h" +#include "NodePath.hpp" -#include "String.h" +#include "String.hpp" #include <godot/godot_node_path.h> diff --git a/include/godot_cpp/core/NodePath.h b/include/godot_cpp/core/NodePath.hpp index 856e2eb..180b8a1 100644 --- a/include/godot_cpp/core/NodePath.h +++ b/include/godot_cpp/core/NodePath.hpp @@ -1,7 +1,7 @@ #ifndef NODEPATH_H #define NODEPATH_H -#include "String.h" +#include "String.hpp" #include <godot/godot_node_path.h> diff --git a/include/godot_cpp/core/Plane.cpp b/include/godot_cpp/core/Plane.cpp index a755a1c..40e0ef6 100644 --- a/include/godot_cpp/core/Plane.cpp +++ b/include/godot_cpp/core/Plane.cpp @@ -1,6 +1,6 @@ -#include "Plane.h" +#include "Plane.hpp" -#include "Vector3.h" +#include "Vector3.hpp" #include <cmath> diff --git a/include/godot_cpp/core/Plane.h b/include/godot_cpp/core/Plane.hpp index edcddaf..5ad5fcd 100644 --- a/include/godot_cpp/core/Plane.h +++ b/include/godot_cpp/core/Plane.hpp @@ -1,7 +1,7 @@ #ifndef PLANE_H #define PLANE_H -#include "Vector3.h" +#include "Vector3.hpp" #include <cmath> diff --git a/include/godot_cpp/core/PoolArrays.cpp b/include/godot_cpp/core/PoolArrays.cpp index 083d303..27c4a58 100644 --- a/include/godot_cpp/core/PoolArrays.cpp +++ b/include/godot_cpp/core/PoolArrays.cpp @@ -1,11 +1,11 @@ -#include "PoolArrays.h" +#include "PoolArrays.hpp" -#include "Defs.h" +#include "Defs.hpp" -#include "String.h" -#include "Color.h" -#include "Vector2.h" -#include "Vector3.h" +#include "String.hpp" +#include "Color.hpp" +#include "Vector2.hpp" +#include "Vector3.hpp" #include <godot/godot_pool_arrays.h> diff --git a/include/godot_cpp/core/PoolArrays.h b/include/godot_cpp/core/PoolArrays.hpp index 7a07f86..e2a51f1 100644 --- a/include/godot_cpp/core/PoolArrays.h +++ b/include/godot_cpp/core/PoolArrays.hpp @@ -1,12 +1,12 @@ #ifndef POOLARRAYS_H #define POOLARRAYS_H -#include "Defs.h" +#include "Defs.hpp" -#include "String.h" -#include "Color.h" -#include "Vector2.h" -#include "Vector3.h" +#include "String.hpp" +#include "Color.hpp" +#include "Vector2.hpp" +#include "Vector3.hpp" #include <godot/godot_pool_arrays.h> diff --git a/include/godot_cpp/core/Quat.cpp b/include/godot_cpp/core/Quat.cpp index 11ec5a6..866de2b 100644 --- a/include/godot_cpp/core/Quat.cpp +++ b/include/godot_cpp/core/Quat.cpp @@ -1,13 +1,13 @@ -#include "Quat.h" +#include "Quat.hpp" #include <cmath> -#include "Defs.h" +#include "Defs.hpp" -#include "Vector3.h" +#include "Vector3.hpp" -#include "Basis.h" +#include "Basis.hpp" namespace godot { diff --git a/include/godot_cpp/core/Quat.h b/include/godot_cpp/core/Quat.hpp index 8021039..927d4a3 100644 --- a/include/godot_cpp/core/Quat.h +++ b/include/godot_cpp/core/Quat.hpp @@ -3,7 +3,7 @@ #include <cmath> -#include "Vector3.h" +#include "Vector3.hpp" // #include "Basis.h" diff --git a/include/godot_cpp/core/RID.cpp b/include/godot_cpp/core/RID.cpp index 7444e55..2343475 100644 --- a/include/godot_cpp/core/RID.cpp +++ b/include/godot_cpp/core/RID.cpp @@ -1,4 +1,4 @@ -#include "RID.h" +#include "RID.hpp" #include <godot/godot_rid.h> diff --git a/include/godot_cpp/core/RID.h b/include/godot_cpp/core/RID.hpp index 83eecc7..7584581 100644 --- a/include/godot_cpp/core/RID.h +++ b/include/godot_cpp/core/RID.hpp @@ -11,6 +11,8 @@ class RID { godot_rid _godot_rid; public: + inline RID() {} + RID(Object *p); int32_t get_rid() const; diff --git a/include/godot_cpp/core/Rect2.cpp b/include/godot_cpp/core/Rect2.cpp index faa188f..2b32506 100644 --- a/include/godot_cpp/core/Rect2.cpp +++ b/include/godot_cpp/core/Rect2.cpp @@ -1,12 +1,12 @@ -#include "Rect2.h" +#include "Rect2.hpp" -#include "Vector2.h" +#include "Vector2.hpp" -#include "String.h" +#include "String.hpp" #include <cmath> -#include "Transform2D.h" +#include "Transform2D.hp" namespace godot { diff --git a/include/godot_cpp/core/Rect2.h b/include/godot_cpp/core/Rect2.hpp index 482df02..792972d 100644 --- a/include/godot_cpp/core/Rect2.h +++ b/include/godot_cpp/core/Rect2.hpp @@ -1,7 +1,7 @@ #ifndef RECT2_H #define RECT2_H -#include "Vector2.h" +#include "Vector2.hpp" #include <cmath> diff --git a/include/godot_cpp/core/Rect3.cpp b/include/godot_cpp/core/Rect3.cpp index 19a8c6f..be3cf8f 100644 --- a/include/godot_cpp/core/Rect3.cpp +++ b/include/godot_cpp/core/Rect3.cpp @@ -1,8 +1,8 @@ -#include "Rect3.h" +#include "Rect3.hpp" -#include "Vector3.h" +#include "Vector3.hpp" -#include "Plane.h" +#include "Plane.hpp" #include <algorithm> diff --git a/include/godot_cpp/core/Rect3.h b/include/godot_cpp/core/Rect3.hpp index cdcb301..acd674f 100644 --- a/include/godot_cpp/core/Rect3.h +++ b/include/godot_cpp/core/Rect3.hpp @@ -1,9 +1,9 @@ #ifndef RECT3_H #define RECT3_H -#include "Vector3.h" +#include "Vector3.hpp" -#include "Plane.h" +#include "Plane.hpp" #include <cstdlib> diff --git a/include/godot_cpp/core/String.cpp b/include/godot_cpp/core/String.cpp index 22f80f3..83b1f90 100644 --- a/include/godot_cpp/core/String.cpp +++ b/include/godot_cpp/core/String.cpp @@ -1,4 +1,4 @@ -#include "String.h" +#include "String.hpp" namespace godot { diff --git a/include/godot_cpp/core/String.h b/include/godot_cpp/core/String.hpp index 5a99964..5a99964 100644 --- a/include/godot_cpp/core/String.h +++ b/include/godot_cpp/core/String.hpp diff --git a/include/godot_cpp/core/Transform.cpp b/include/godot_cpp/core/Transform.cpp index 337a49c..b8a05df 100644 --- a/include/godot_cpp/core/Transform.cpp +++ b/include/godot_cpp/core/Transform.cpp @@ -1,11 +1,11 @@ -#include "Transform.h" +#include "Transform.hpp" -#include "Basis.h" +#include "Basis.hpp" -#include "Plane.h" -#include "Rect3.h" +#include "Plane.hpp" +#include "Rect3.hpp" -#include "Quat.h" +#include "Quat.hpp" namespace godot { diff --git a/include/godot_cpp/core/Transform.h b/include/godot_cpp/core/Transform.hpp index 56ece9d..bb47693 100644 --- a/include/godot_cpp/core/Transform.h +++ b/include/godot_cpp/core/Transform.hpp @@ -1,10 +1,10 @@ #ifndef TRANSFORM_H #define TRANSFORM_H -#include "Basis.h" +#include "Basis.hpp" -#include "Plane.h" -#include "Rect3.h" +#include "Plane.hpp" +#include "Rect3.hpp" namespace godot { diff --git a/include/godot_cpp/core/Transform2D.cpp b/include/godot_cpp/core/Transform2D.cpp index a57ea89..9dfbb22 100644 --- a/include/godot_cpp/core/Transform2D.cpp +++ b/include/godot_cpp/core/Transform2D.cpp @@ -1,10 +1,10 @@ -#include "Transform2D.h" +#include "Transform2D.hp" -#include "Vector2.h" +#include "Vector2.hpp" -#include "String.h" +#include "String.hpp" -#include "Rect2.h" +#include "Rect2.hpp" #include <algorithm> diff --git a/include/godot_cpp/core/Transform2D.h b/include/godot_cpp/core/Transform2D.hp index d7942b0..f3bc5fb 100644 --- a/include/godot_cpp/core/Transform2D.h +++ b/include/godot_cpp/core/Transform2D.hp @@ -1,7 +1,7 @@ #ifndef TRANSFORM2D_H #define TRANSFORM2D_H -#include "Vector2.h" +#include "Vector2.hpp" namespace godot { diff --git a/include/godot_cpp/core/Variant.cpp b/include/godot_cpp/core/Variant.cpp index f6fc0ac..edb7672 100644 --- a/include/godot_cpp/core/Variant.cpp +++ b/include/godot_cpp/core/Variant.cpp @@ -1,10 +1,10 @@ -#include "Variant.h" +#include "Variant.hpp" #include <godot/godot_variant.h> -#include "Defs.h" +#include "Defs.hpp" -#include "CoreTypes.h" +#include "CoreTypes.hpp" #include <iostream> diff --git a/include/godot_cpp/core/Variant.h b/include/godot_cpp/core/Variant.hpp index b9efd64..2fe0fed 100644 --- a/include/godot_cpp/core/Variant.h +++ b/include/godot_cpp/core/Variant.hpp @@ -3,24 +3,24 @@ #include <godot/godot_variant.h> -#include "Defs.h" - -#include "Basis.h" -#include "Color.h" -#include "Image.h" -#include "InputEvent.h" -#include "NodePath.h" -#include "Plane.h" -#include "PoolArrays.h" -#include "Quat.h" -#include "Rect2.h" -#include "Rect3.h" -#include "RID.h" -#include "String.h" -#include "Transform.h" -#include "Transform2D.h" -#include "Vector2.h" -#include "Vector3.h" +#include "Defs.hpp" + +#include "Basis.hpp" +#include "Color.hpp" +#include "Image.hpp" +#include "InputEvent.hpp" +#include "NodePath.hpp" +#include "Plane.hpp" +#include "PoolArrays.hpp" +#include "Quat.hpp" +#include "Rect2.hpp" +#include "Rect3.hpp" +#include "RID.hpp" +#include "String.hpp" +#include "Transform.hpp" +#include "Transform2D.hp" +#include "Vector2.hpp" +#include "Vector3.hpp" #include <iostream> diff --git a/include/godot_cpp/core/Vector2.cpp b/include/godot_cpp/core/Vector2.cpp index cc5beb3..d17f828 100644 --- a/include/godot_cpp/core/Vector2.cpp +++ b/include/godot_cpp/core/Vector2.cpp @@ -1,10 +1,10 @@ -#include "Vector2.h" +#include "Vector2.hpp" #include <cmath> #include <godot/godot_vector2.h> -#include "String.h" +#include "String.hpp" namespace godot { diff --git a/include/godot_cpp/core/Vector2.h b/include/godot_cpp/core/Vector2.hpp index 461570c..b62ddfd 100644 --- a/include/godot_cpp/core/Vector2.h +++ b/include/godot_cpp/core/Vector2.hpp @@ -4,7 +4,7 @@ #include <godot/godot_vector2.h> -#include "Defs.h" +#include "Defs.hpp" namespace godot { diff --git a/include/godot_cpp/core/Vector3.cpp b/include/godot_cpp/core/Vector3.cpp index 64043f6..b73362d 100644 --- a/include/godot_cpp/core/Vector3.cpp +++ b/include/godot_cpp/core/Vector3.cpp @@ -1,13 +1,13 @@ -#include "Vector3.h" +#include "Vector3.hpp" -#include "String.h" +#include "String.hpp" #include <stdlib.h> #include <cmath> -#include "Basis.h" +#include "Basis.hpp" namespace godot { diff --git a/include/godot_cpp/core/Vector3.h b/include/godot_cpp/core/Vector3.hpp index 9f97172..d1db4e1 100644 --- a/include/godot_cpp/core/Vector3.h +++ b/include/godot_cpp/core/Vector3.hpp @@ -1,9 +1,9 @@ #ifndef VECTOR3_H #define VECTOR3_H -#include "Defs.h" +#include "Defs.hpp" -#include "String.h" +#include "String.hpp" namespace godot { |
