diff options
author | Thomas Herzog <thomas.herzog@mail.com> | 2019-08-05 10:39:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-05 10:39:56 +0200 |
commit | c2ec46f64a24de9a46b06c3e987c306f549ccadb (patch) | |
tree | c47c280be3a9638536011440b75bdc99dfe9b578 /src/core/NodePath.cpp | |
parent | cdd50260d0c2bd620f15d16e2e00a4d8c965eb67 (diff) | |
parent | b895d3c3264dd52312e65af01e34ed04bbf86222 (diff) | |
download | redot-cpp-c2ec46f64a24de9a46b06c3e987c306f549ccadb.tar.gz |
Merge pull request #296 from lupoDharkael/missing
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); |