diff options
author | nlupugla <lupu.gladstein@gmail.com> | 2023-09-17 14:38:44 -0400 |
---|---|---|
committer | nlupugla <lupu.gladstein@gmail.com> | 2023-12-13 13:30:28 -0500 |
commit | cd221c1816fe1ffa9c0e730667ade2940dd14632 (patch) | |
tree | ca13ddd69c6ea9bce23bc9f39bc629174f7ab3d4 /core/string/node_path.h | |
parent | b94eb58d35b3dd8a9f522bc90df0db73862ef326 (diff) | |
download | redot-engine-cd221c1816fe1ffa9c0e730667ade2940dd14632.tar.gz |
Added NodePath::slice method.
Diffstat (limited to 'core/string/node_path.h')
-rw-r--r-- | core/string/node_path.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/string/node_path.h b/core/string/node_path.h index 876d69924e..56799839d7 100644 --- a/core/string/node_path.h +++ b/core/string/node_path.h @@ -57,10 +57,12 @@ public: StringName get_name(int p_idx) const; int get_subname_count() const; StringName get_subname(int p_idx) const; + int get_total_name_count() const; Vector<StringName> get_names() const; Vector<StringName> get_subnames() const; StringName get_concatenated_names() const; StringName get_concatenated_subnames() const; + NodePath slice(int p_begin, int p_end = INT_MAX) const; NodePath rel_path_to(const NodePath &p_np) const; NodePath get_as_property_path() const; |