treballant en el extendedMap per a les colisións fora de pantalla

This commit is contained in:
2026-04-09 21:46:45 +02:00
parent 2120641c3d
commit 4f890586f1
20 changed files with 326 additions and 383 deletions

View File

@@ -20,7 +20,7 @@ namespace Resource {
};
// Resource pack file format
// Header: "JDDI" (4 bytes) + Version (4 bytes)
// Header: "P26R" (4 bytes) + Version (4 bytes)
// Metadata: Count + array of ResourceEntry
// Data: Encrypted data block
class Pack {
@@ -49,9 +49,9 @@ namespace Resource {
[[nodiscard]] auto calculatePackChecksum() const -> uint32_t; // Validation
private:
static constexpr std::array<char, 4> MAGIC_HEADER = {'J', 'D', 'D', 'I'}; // Pack format constants
static constexpr uint32_t VERSION = 1;
static constexpr const char* DEFAULT_ENCRYPT_KEY = "JDDI_RESOURCES_2024";
static constexpr std::array<char, 4> MAGIC_HEADER = {'P', '2', '6', 'R'}; // Pack format constants
static constexpr uint32_t VERSION = 2;
static constexpr const char* DEFAULT_ENCRYPT_KEY = "P26_RESOURCES_2026";
static auto calculateChecksum(const std::vector<uint8_t>& data) -> uint32_t; // Utility methods