aboutsummaryrefslogtreecommitdiff
path: root/core/object.h
diff options
context:
space:
mode:
authorRémi Verschelde2017-11-21 22:44:14 +0100
committerGitHub2017-11-21 22:44:14 +0100
commit613d374bc571929d601af1eab17079a639fe576f (patch)
tree657d86e92254bb1aa8a9af0cddee5f74fdf50493 /core/object.h
parent08e6590fd625bc3b592b7398ec2825f3758ab6e8 (diff)
parent0cf9597758f3af3afc951d0bf02dee1aeb9a6daf (diff)
downloadgodot-613d374bc571929d601af1eab17079a639fe576f.tar.gz
godot-613d374bc571929d601af1eab17079a639fe576f.tar.zst
godot-613d374bc571929d601af1eab17079a639fe576f.zip
Merge pull request #12284 from bojidar-bg/allow-subproperty-set
Allow for getting/setting "dotted" properties of objects
Diffstat (limited to 'core/object.h')
-rw-r--r--core/object.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/object.h b/core/object.h
index 7af2c78fc..3ac699f97 100644
--- a/core/object.h
+++ b/core/object.h
@@ -477,6 +477,8 @@ private:
Array _get_incoming_connections() const;
void _set_bind(const String &p_set, const Variant &p_value);
Variant _get_bind(const String &p_name) const;
+ void _set_indexed_bind(const NodePath &p_name, const Variant &p_value);
+ Variant _get_indexed_bind(const NodePath &p_name) const;
void *_script_instance_bindings[MAX_SCRIPT_INSTANCE_BINDINGS];
@@ -627,6 +629,8 @@ public:
void set(const StringName &p_name, const Variant &p_value, bool *r_valid = NULL);
Variant get(const StringName &p_name, bool *r_valid = NULL) const;
+ void set_indexed(const Vector<StringName> &p_names, const Variant &p_value, bool *r_valid = NULL);
+ Variant get_indexed(const Vector<StringName> &p_names, bool *r_valid = NULL) const;
void get_property_list(List<PropertyInfo> *p_list, bool p_reversed = false) const;
@@ -687,6 +691,7 @@ public:
bool is_blocking_signals() const;
Variant::Type get_static_property_type(const StringName &p_property, bool *r_valid = NULL) const;
+ Variant::Type get_static_property_type_indexed(const Vector<StringName> &p_path, bool *r_valid = NULL) const;
virtual void get_translatable_strings(List<String> *p_strings) const;