mirror of
https://github.com/godotengine/godot.git
synced 2024-12-03 09:52:18 +08:00
9df77d2765
also, 2D physics is now thread safe too. see physics_2d/thread_model
32 lines
498 B
C++
32 lines
498 B
C++
#include "core/reference.h"
|
|
|
|
class FileAccess;
|
|
|
|
class PCKPacker : public Reference {
|
|
|
|
OBJ_TYPE(PCKPacker, Reference);
|
|
|
|
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();
|
|
};
|