Missing duplicate (with deep_copy bool) function for Dictionary
See original GitHub issueHello!
Duplicate(deep = false) I’m currently missing the duplicate function (with deep_copy functionalities) in the godot.core.Dictionary.
keys and values? Also I’m not really sure about the implementation of keys and values as they currently seem much too close to being actual fields in the Dictionary? Like for example if I have following Dictionary dict:
{
"keys" : ["pear", "banana", "apple"],
"values": ["diamond", "pearl", "amethyst"]
}
I would expect dict.keys to give me a GDArray of [“pear”, “banana”, “apple”] instead of a GDArray of [“keys”, “values”]? Currently this isn’t the case and this might confuse adapters coming from GDScript. (I am aware that you can still use dict[“keys”] and that will work… but the confusion can be avoided!)
list<String> and array<String> to PoolStringArray There’s a lot of other functionalities missing but having a conversion between list<String> and PoolStringArray (as well as other lists<>/array<> to their respective Godot arrays) would be great to have.
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (8 by maintainers)
Top GitHub Comments
Changed the label from beta release to production release as the most important functions are added for the beta release. The other functions are delivered in another beta version or the final release.
Closing in favor of the merge. After the merge, there should be no functions missing, because the setup for the cinterop works differently. I some functions are desperately needed until then, feel free to reopen it.