2017-03-03 00:07:14 +00:00
|
|
|
#ifndef NODEPATH_H
|
|
|
|
#define NODEPATH_H
|
|
|
|
|
2017-03-06 07:49:24 +00:00
|
|
|
#include "String.hpp"
|
2017-03-03 00:07:14 +00:00
|
|
|
|
2017-10-03 10:37:34 +00:00
|
|
|
#include <gdnative/node_path.h>
|
2017-03-03 00:07:14 +00:00
|
|
|
|
|
|
|
namespace godot {
|
|
|
|
|
|
|
|
|
2017-07-23 15:53:50 +00:00
|
|
|
class NodePath
|
2017-03-03 00:07:14 +00:00
|
|
|
{
|
|
|
|
godot_node_path _node_path;
|
|
|
|
public:
|
2017-03-06 02:30:46 +00:00
|
|
|
NodePath();
|
|
|
|
|
2017-04-06 00:32:24 +00:00
|
|
|
NodePath(const NodePath &other);
|
|
|
|
|
|
|
|
NodePath(const String& from);
|
|
|
|
|
|
|
|
NodePath(const char *contents);
|
2017-03-06 02:30:46 +00:00
|
|
|
|
|
|
|
String get_name(const int idx) const;
|
|
|
|
|
|
|
|
int get_name_count() const;
|
|
|
|
|
|
|
|
String get_subname(const int idx) const;
|
|
|
|
|
|
|
|
int get_subname_count() const;
|
|
|
|
|
|
|
|
bool is_absolute() const;
|
|
|
|
|
|
|
|
bool is_empty() const;
|
|
|
|
|
|
|
|
operator String() const;
|
|
|
|
|
2017-04-06 00:32:24 +00:00
|
|
|
void operator =(const NodePath& other);
|
|
|
|
|
2017-03-06 02:30:46 +00:00
|
|
|
~NodePath();
|
2017-03-03 00:07:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // NODEPATH_H
|