Polish & fix editor help cache generation
- Isolated the generation of extensions's docs. They're now not cached and refreshed as needed. - Removed superfluous sorting of the class list. - Removed some superfluous/unused elements. - Renamed some items for clarity.
This commit is contained in:
parent
93cdacbb0a
commit
a1d8fc1af9
7 changed files with 71 additions and 49 deletions
|
|
@ -98,9 +98,24 @@ void ClassDB::get_class_list(List<StringName> *p_classes) {
|
|||
p_classes->push_back(E.key);
|
||||
}
|
||||
|
||||
p_classes->sort();
|
||||
p_classes->sort_custom<StringName::AlphCompare>();
|
||||
}
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
void ClassDB::get_extensions_class_list(List<StringName> *p_classes) {
|
||||
OBJTYPE_RLOCK;
|
||||
|
||||
for (const KeyValue<StringName, ClassInfo> &E : classes) {
|
||||
if (E.value.api != API_EXTENSION && E.value.api != API_EDITOR_EXTENSION) {
|
||||
continue;
|
||||
}
|
||||
p_classes->push_back(E.key);
|
||||
}
|
||||
|
||||
p_classes->sort_custom<StringName::AlphCompare>();
|
||||
}
|
||||
#endif
|
||||
|
||||
void ClassDB::get_inheriters_from_class(const StringName &p_class, List<StringName> *p_classes) {
|
||||
OBJTYPE_RLOCK;
|
||||
|
||||
|
|
|
|||
|
|
@ -251,6 +251,9 @@ public:
|
|||
}
|
||||
|
||||
static void get_class_list(List<StringName> *p_classes);
|
||||
#ifdef TOOLS_ENABLED
|
||||
static void get_extensions_class_list(List<StringName> *p_classes);
|
||||
#endif
|
||||
static void get_inheriters_from_class(const StringName &p_class, List<StringName> *p_classes);
|
||||
static void get_direct_inheriters_from_class(const StringName &p_class, List<StringName> *p_classes);
|
||||
static StringName get_parent_class_nocheck(const StringName &p_class);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue