I looked through Godot's API to find methods where a Dictionary
is currently used and a Struct
might be more approprate. I found about 130 methods accross the codebase. My approach wasn't terribly systematic: I used ctrl-f
to search extension_api.json
for "type": "Dictionary"
and "type": "typedarray::Dictionary"
. I removed some methods from the list where a Dictionary
really did seem appropraite. That said, there are probably still several "false positives" in this list. I don't intend to modify all of these on my own. Rather, I'll start by structifying a handful of the most commonly used methods and leave it to others to structify the rest as the need/demand arrises.
- ClassDB::class_get_signal_list()
- ClassDB::class_get_property_list()
- ClassDB::class_get_method_list()
- CodeEdit::_filter_code_completion_candidates()
- CodeEdit::get_code_completion_options()
- DisplayServer::tts_get_voices()
- EditorExportPlugin::_get_export_options()
- EditorImportPlugin::_get_import_options()