diff options
Diffstat (limited to 'tools/pck/pck_packer.h')
-rw-r--r-- | tools/pck/pck_packer.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/pck/pck_packer.h b/tools/pck/pck_packer.h new file mode 100644 index 0000000000..76752a6170 --- /dev/null +++ b/tools/pck/pck_packer.h @@ -0,0 +1,31 @@ +#include "core/object.h" + +class FileAccess; + +class PCKPacker : public Object { + + OBJ_TYPE(PCKPacker, Object); + + FileAccess* file; + int alignment; + + static void _bind_methods(); + + struct File { + + String path; + String src_path; + int size; + uint64_t offset_offset; + }; + Vector<File> files; + +public: + Error pck_start(const String& p_file, int p_alignment); + Error add_file(const String& p_file, const String& p_src); + Error flush(bool p_verbose = false); + + + PCKPacker(); + ~PCKPacker(); +}; |