summaryrefslogtreecommitdiffstats
path: root/include/core/NodePath.hpp
diff options
context:
space:
mode:
authorKarroffel <therzog@mail.de>2017-05-12 21:53:07 +0200
committerKarroffel <therzog@mail.de>2017-05-12 21:53:07 +0200
commitcf30b0f39ddb2c6acad5d22655c4bca9015d7502 (patch)
tree45a4df6ff16450b334d6c8856a74f4f47f3e9336 /include/core/NodePath.hpp
parent3969bcf07857b1a4af391bbddb924388cc7f44bb (diff)
downloadredot-cpp-cf30b0f39ddb2c6acad5d22655c4bca9015d7502.tar.gz
rewrote binding generator in python
Diffstat (limited to 'include/core/NodePath.hpp')
-rw-r--r--include/core/NodePath.hpp58
1 files changed, 58 insertions, 0 deletions
diff --git a/include/core/NodePath.hpp b/include/core/NodePath.hpp
new file mode 100644
index 0000000..3f75ca1
--- /dev/null
+++ b/include/core/NodePath.hpp
@@ -0,0 +1,58 @@
+#ifndef NODEPATH_H
+#define NODEPATH_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 "String.hpp"
+
+#include <godot/godot_node_path.h>
+
+namespace godot {
+
+
+class GD_CPP_CORE_API NodePath
+{
+ godot_node_path _node_path;
+public:
+ NodePath();
+
+ NodePath(const NodePath &other);
+
+ NodePath(const String& from);
+
+ NodePath(const char *contents);
+
+ String get_name(const int idx) const;
+
+ int get_name_count() const;
+
+ String get_property() const;
+
+ String get_subname(const int idx) const;
+
+ int get_subname_count() const;
+
+ bool is_absolute() const;
+
+ bool is_empty() const;
+
+ operator String() const;
+
+ void operator =(const NodePath& other);
+
+ ~NodePath();
+};
+
+
+
+}
+
+#endif // NODEPATH_H