godot-cpp/include/godot_cpp/core/NodePath.hpp

53 lines
743 B
C++

#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 String &from);
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;
~NodePath();
};
}
#endif // NODEPATH_H