mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 10:44:26 +00:00
Change ClassDB::get_class_list and related stuff.
This commit is contained in:
parent
99a39ce6ea
commit
a50fc5acd8
23 changed files with 155 additions and 150 deletions
|
|
@ -40,13 +40,11 @@
|
|||
void class_db_api_to_json(const String &p_output_file, ClassDB::APIType p_api) {
|
||||
Dictionary classes_dict;
|
||||
|
||||
List<StringName> class_list;
|
||||
ClassDB::get_class_list(&class_list);
|
||||
// Must be alphabetically sorted for hash to compute.
|
||||
class_list.sort_custom<StringName::AlphCompare>();
|
||||
LocalVector<StringName> class_list;
|
||||
ClassDB::get_class_list(class_list);
|
||||
|
||||
for (const StringName &E : class_list) {
|
||||
ClassDB::ClassInfo *t = ClassDB::classes.getptr(E);
|
||||
for (const StringName &class_name : class_list) {
|
||||
ClassDB::ClassInfo *t = ClassDB::classes.getptr(class_name);
|
||||
ERR_FAIL_NULL(t);
|
||||
if (t->api != p_api || !t->exposed) {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue