godot-cpp/include/core/NodePath.hpp

49 lines
624 B
C++

#ifndef NODEPATH_H
#define NODEPATH_H
#include "String.hpp"
#include <godot/node_path.h>
namespace godot {
class 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