NodePath.hpp 596 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef NODEPATH_H
  2. #define NODEPATH_H
  3. #include "String.hpp"
  4. #include <gdnative/node_path.h>
  5. namespace godot {
  6. class NodePath
  7. {
  8. godot_node_path _node_path;
  9. public:
  10. NodePath();
  11. NodePath(const NodePath &other);
  12. NodePath(const String& from);
  13. NodePath(const char *contents);
  14. String get_name(const int idx) const;
  15. int get_name_count() const;
  16. String get_subname(const int idx) const;
  17. int get_subname_count() const;
  18. bool is_absolute() const;
  19. bool is_empty() const;
  20. operator String() const;
  21. void operator =(const NodePath& other);
  22. ~NodePath();
  23. };
  24. }
  25. #endif // NODEPATH_H