Merge pull request #12284 from bojidar-bg/allow-subproperty-set
Allow for getting/setting "dotted" properties of objects
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user