summaryrefslogtreecommitdiffstats
path: root/editor/doc_tools.h
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2023-10-31 18:27:17 +0100
committerPedro J. Estébanez <pedrojrulez@gmail.com>2023-11-02 13:46:37 +0100
commita1d8fc1af965c4de6428aa8676f5963e6214ed5b (patch)
tree4f3e1b370639fa698727b4c1096adc332a5475fd /editor/doc_tools.h
parent93cdacbb0a30f12b2f3f5e8e06b90149deeb554b (diff)
downloadredot-engine-a1d8fc1af965c4de6428aa8676f5963e6214ed5b.tar.gz
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.
Diffstat (limited to 'editor/doc_tools.h')
-rw-r--r--editor/doc_tools.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/doc_tools.h b/editor/doc_tools.h
index 2d4a45bda0..5fffb6be38 100644
--- a/editor/doc_tools.h
+++ b/editor/doc_tools.h
@@ -45,7 +45,11 @@ public:
void add_doc(const DocData::ClassDoc &p_class_doc);
void remove_doc(const String &p_class_name);
bool has_doc(const String &p_class_name);
- void generate(bool p_basic_types = false);
+ enum GenerateFlags {
+ GENERATE_FLAG_SKIP_BASIC_TYPES = (1 << 0),
+ GENERATE_FLAG_EXTENSION_CLASSES_ONLY = (1 << 1),
+ };
+ void generate(BitField<GenerateFlags> p_flags = {});
Error load_classes(const String &p_dir);
Error save_classes(const String &p_default_path, const HashMap<String, String> &p_class_path, bool p_include_xml_schema = true);