diff options
author | lupoDharkael <izhe@hotmail.es> | 2019-05-22 11:06:01 +0200 |
---|---|---|
committer | lupoDharkael <izhe@hotmail.es> | 2019-08-05 00:23:42 +0200 |
commit | b895d3c3264dd52312e65af01e34ed04bbf86222 (patch) | |
tree | 986d39e1ff65c0b2b4aa1f43c7675bea96ec9087 /src/core/NodePath.cpp | |
parent | bcc39bbf4bf9922c1a5eaea91885eda05cd1202c (diff) | |
download | redot-cpp-b895d3c3264dd52312e65af01e34ed04bbf86222.tar.gz |
Add missing class methods
Diffstat (limited to 'src/core/NodePath.cpp')
-rw-r--r-- | src/core/NodePath.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/NodePath.cpp b/src/core/NodePath.cpp index 021bf35..37ab2a3 100644 --- a/src/core/NodePath.cpp +++ b/src/core/NodePath.cpp @@ -52,6 +52,15 @@ bool NodePath::is_empty() const { return godot::api->godot_node_path_is_empty(&_node_path); } +NodePath NodePath::get_as_property_path() const { + godot_node_path path = godot::core_1_1_api->godot_node_path_get_as_property_path(&_node_path); + return *(NodePath *)&path; +} +String NodePath::get_concatenated_subnames() const { + godot_string str = godot::api->godot_node_path_get_concatenated_subnames(&_node_path); + return *(String *)&str; +} + NodePath::operator String() const { godot_string str = godot::api->godot_node_path_as_string(&_node_path); |