diff options
| author | Juan Linietsky | 2015-12-13 01:08:36 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-12-13 01:08:36 -0300 |
| commit | 709de124c17988ab05f606c09d0f6414fbbd2ca9 (patch) | |
| tree | 4b529eac4c976340f68e42941693969c1ed6af3c /tools/editor/editor_import_export.h | |
| parent | 11eaf019b35b185ff0631551629e63edd661ae50 (diff) | |
| download | godot-709de124c17988ab05f606c09d0f6414fbbd2ca9.tar.gz godot-709de124c17988ab05f606c09d0f6414fbbd2ca9.tar.zst godot-709de124c17988ab05f606c09d0f6414fbbd2ca9.zip | |
ability to export scene to zip
Diffstat (limited to 'tools/editor/editor_import_export.h')
| -rw-r--r-- | tools/editor/editor_import_export.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/editor/editor_import_export.h b/tools/editor/editor_import_export.h index 93086f7ad..940a41baf 100644 --- a/tools/editor/editor_import_export.h +++ b/tools/editor/editor_import_export.h @@ -33,6 +33,7 @@ #include "scene/main/node.h" #include "scene/resources/texture.h" + class EditorExportPlatform; class FileAccess; class EditorProgress; @@ -107,8 +108,17 @@ protected: }; + struct ZipData { + + void* zip; + EditorProgress *ep; + int count; + + }; + void gen_export_flags(Vector<String> &r_flags, int p_flags); static Error save_pack_file(void *p_userdata,const String& p_path, const Vector<uint8_t>& p_data,int p_file,int p_total); + static Error save_zip_file(void *p_userdata,const String& p_path, const Vector<uint8_t>& p_data,int p_file,int p_total); public: @@ -134,6 +144,8 @@ public: Error export_project_files(EditorExportSaveFunction p_func, void* p_udata,bool p_make_bundles); Error save_pack(FileAccess *p_where, bool p_make_bundles=false, int p_alignment = 1); + Error save_zip(const String& p_path, bool p_make_bundles=false); + virtual String get_name() const =0; virtual ImageCompression get_image_compression() const=0; virtual Ref<Texture> get_logo() const =0; |
