diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-06-06 12:19:56 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-06-06 12:19:56 +0300 |
commit | b3bbf3db47b2bde688b013cb29f99e745313e2c5 (patch) | |
tree | 07ca2aa8758dbe28071438740d71cda209f1caa6 /core/variant | |
parent | 52952edafcbbc42185db8e5371119c1df9afca83 (diff) |
[GDExtension] Expose Variant, NodePath and StringName hash functions.
Diffstat (limited to 'core/variant')
-rw-r--r-- | core/variant/variant_call.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/variant/variant_call.cpp b/core/variant/variant_call.cpp index a3568a8d6a..6b1868df68 100644 --- a/core/variant/variant_call.cpp +++ b/core/variant/variant_call.cpp @@ -1472,6 +1472,10 @@ static void _register_variant_builtin_methods() { bind_static_method(String, chr, sarray("char"), varray()); bind_static_method(String, humanize_size, sarray("size"), varray()); + /* StringName */ + + bind_method(StringName, hash, sarray(), varray()); + /* Vector2 */ bind_method(Vector2, angle, sarray(), varray()); @@ -1684,6 +1688,7 @@ static void _register_variant_builtin_methods() { bind_method(NodePath, get_name_count, sarray(), varray()); bind_method(NodePath, get_name, sarray("idx"), varray()); bind_method(NodePath, get_subname_count, sarray(), varray()); + bind_method(NodePath, hash, sarray(), varray()); bind_method(NodePath, get_subname, sarray("idx"), varray()); bind_method(NodePath, get_concatenated_subnames, sarray(), varray()); bind_method(NodePath, get_as_property_path, sarray(), varray()); |