summaryrefslogtreecommitdiffstats
path: root/editor/export/editor_export_preset.h
diff options
context:
space:
mode:
authorDavid Snopek <dsnopek@gmail.com>2022-12-20 15:49:11 -0600
committerDavid Snopek <dsnopek@gmail.com>2023-01-23 13:24:54 -0600
commit74458b6e9bed0f28db3374c7406eacbcf4b09b9d (patch)
tree9ce6e2833dbe29a75461f1cf3b171fc7e090bdcf /editor/export/editor_export_preset.h
parent91713ced81792b10fdc9367b7f355738e5d52777 (diff)
downloadredot-engine-74458b6e9bed0f28db3374c7406eacbcf4b09b9d.tar.gz
Add "dedicated server" export mode which can strip unneeded visual resources
Diffstat (limited to 'editor/export/editor_export_preset.h')
-rw-r--r--editor/export/editor_export_preset.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/editor/export/editor_export_preset.h b/editor/export/editor_export_preset.h
index 2055416d4b..0d025c265f 100644
--- a/editor/export/editor_export_preset.h
+++ b/editor/export/editor_export_preset.h
@@ -44,6 +44,14 @@ public:
EXPORT_SELECTED_SCENES,
EXPORT_SELECTED_RESOURCES,
EXCLUDE_SELECTED_RESOURCES,
+ EXPORT_CUSTOMIZED,
+ };
+
+ enum FileExportMode {
+ MODE_FILE_NOT_CUSTOMIZED,
+ MODE_FILE_STRIP,
+ MODE_FILE_KEEP,
+ MODE_FILE_REMOVE,
};
enum ScriptExportMode {
@@ -60,7 +68,9 @@ private:
String exporter;
HashSet<String> selected_files;
+ HashMap<String, FileExportMode> customized_files;
bool runnable = false;
+ bool dedicated_server = false;
friend class EditorExport;
friend class EditorExportPlatform;
@@ -91,20 +101,29 @@ public:
bool has(const StringName &p_property) const { return values.has(p_property); }
- void update_files_to_export();
+ void update_files();
Vector<String> get_files_to_export() const;
+ Dictionary get_customized_files() const;
+ int get_customized_files_count() const;
+ void set_customized_files(const Dictionary &p_files);
void add_export_file(const String &p_path);
void remove_export_file(const String &p_path);
bool has_export_file(const String &p_path);
+ void set_file_export_mode(const String &p_path, FileExportMode p_mode);
+ FileExportMode get_file_export_mode(const String &p_path, FileExportMode p_default = MODE_FILE_NOT_CUSTOMIZED) const;
+
void set_name(const String &p_name);
String get_name() const;
void set_runnable(bool p_enable);
bool is_runnable() const;
+ void set_dedicated_server(bool p_enable);
+ bool is_dedicated_server() const;
+
void set_export_filter(ExportFilter p_filter);
ExportFilter get_export_filter() const;