diff options
author | Juan Linietsky <reduzio@gmail.com> | 2014-08-01 22:10:38 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2014-08-01 22:10:38 -0300 |
commit | 678948068bbde7f12a9c5f28a467b6cf4d127851 (patch) | |
tree | 75572f3a5cc6089a6ca3046e9307d0a7c0b72c51 /tools/pck/pck_packer.h | |
parent | 9ff6d55822647c87eef392147ea15641d0922d47 (diff) | |
download | redot-engine-678948068bbde7f12a9c5f28a467b6cf4d127851.tar.gz |
Small Issues & Maintenance
-=-=-=-=-=-=-=-=-=-=-=-=-=
-Begin work on Navigation Meshes (simple pathfinding for now, will improve soon)
-More doc on theme overriding
-Upgraded OpenSSL to version without bugs
-Misc bugfixes
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(); +}; |