Merge pull request #12284 from bojidar-bg/allow-subproperty-set

Allow for getting/setting "dotted" properties of objects
This commit is contained in:
Rémi Verschelde
2017-11-21 22:44:14 +01:00
committed by GitHub
23 changed files with 418 additions and 244 deletions
+2 -2
View File
@@ -91,10 +91,10 @@ godot_string GDAPI godot_node_path_get_subname(const godot_node_path *p_self, co
return dest;
}
godot_string GDAPI godot_node_path_get_property(const godot_node_path *p_self) {
godot_string GDAPI godot_node_path_get_concatenated_subnames(const godot_node_path *p_self) {
godot_string dest;
const NodePath *self = (const NodePath *)p_self;
memnew_placement(&dest, String(self->get_property()));
memnew_placement(&dest, String(self->get_concatenated_subnames()));
return dest;
}
+1 -1
View File
@@ -2918,7 +2918,7 @@
]
},
{
"name": "godot_node_path_get_property",
"name": "godot_node_path_get_concatenated_subnames",
"return_type": "godot_string",
"arguments": [
["const godot_node_path *", "p_self"]
@@ -73,7 +73,7 @@ godot_int GDAPI godot_node_path_get_subname_count(const godot_node_path *p_self)
godot_string GDAPI godot_node_path_get_subname(const godot_node_path *p_self, const godot_int p_idx);
godot_string GDAPI godot_node_path_get_property(const godot_node_path *p_self);
godot_string GDAPI godot_node_path_get_concatenated_subnames(const godot_node_path *p_self);
godot_bool GDAPI godot_node_path_is_empty(const godot_node_path *p_self);