678948068b
-=-=-=-=-=-=-=-=-=-=-=-=-= -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
31 lines
489 B
C++
31 lines
489 B
C++
#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();
|
|
};
|