|
@@ -32,7 +32,7 @@ namespace sunrise::state::build_data::cache::records {
|
|
|
/** These 8 ASCII bytes mark a Sunrise build-data file. */
|
|
/** These 8 ASCII bytes mark a Sunrise build-data file. */
|
|
|
inline constexpr std::array<char, 8> kCacheMagic{'S', 'U', 'N', 'R', 'I', 'S', 'E', 'B'};
|
|
inline constexpr std::array<char, 8> kCacheMagic{'S', 'U', 'N', 'R', 'I', 'S', 'E', 'B'};
|
|
|
/** Bump when stored layouts or extracted values change; other versions are rebuilt. */
|
|
/** Bump when stored layouts or extracted values change; other versions are rebuilt. */
|
|
|
-inline constexpr std::uint32_t kCacheFormatVersion = 67;
|
|
|
|
|
|
|
+inline constexpr std::uint32_t kCacheFormatVersion = 68;
|
|
|
/** Signed -1 on disk means there is no equipment slot. */
|
|
/** Signed -1 on disk means there is no equipment slot. */
|
|
|
inline constexpr std::int8_t kAbsentEquipmentSlot = -1;
|
|
inline constexpr std::int8_t kAbsentEquipmentSlot = -1;
|
|
|
/** The standard 64-bit FNV-1a offset basis starts the payload checksum. */
|
|
/** The standard 64-bit FNV-1a offset basis starts the payload checksum. */
|
|
@@ -622,9 +622,9 @@ struct RewardPoolRecord {
|
|
|
struct RewardEntryRecord {
|
|
struct RewardEntryRecord {
|
|
|
std::uint16_t itemIndex{};
|
|
std::uint16_t itemIndex{};
|
|
|
std::uint16_t poolIndex{};
|
|
std::uint16_t poolIndex{};
|
|
|
|
|
+ std::uint16_t mappingIndex{};
|
|
|
std::uint32_t quantity{};
|
|
std::uint32_t quantity{};
|
|
|
std::uint32_t categoryHash{};
|
|
std::uint32_t categoryHash{};
|
|
|
- std::uint32_t bucketHash{};
|
|
|
|
|
float weight{};
|
|
float weight{};
|
|
|
RewardRangeRecord condition{};
|
|
RewardRangeRecord condition{};
|
|
|
RewardRangeRecord modifiers{};
|
|
RewardRangeRecord modifiers{};
|
|
@@ -654,7 +654,7 @@ static_assert(sizeof(RewardSelectionRecord) == 2 * sizeof(std::uint32_t));
|
|
|
static_assert(sizeof(RewardRangeRecord) == 2 * sizeof(std::uint32_t));
|
|
static_assert(sizeof(RewardRangeRecord) == 2 * sizeof(std::uint32_t));
|
|
|
static_assert(sizeof(RewardPoolRecord) == sizeof(std::uint32_t) + sizeof(RewardRangeRecord));
|
|
static_assert(sizeof(RewardPoolRecord) == sizeof(std::uint32_t) + sizeof(RewardRangeRecord));
|
|
|
static_assert(sizeof(RewardEntryRecord)
|
|
static_assert(sizeof(RewardEntryRecord)
|
|
|
- == 2 * sizeof(std::uint16_t) + 3 * sizeof(std::uint32_t) + sizeof(float)
|
|
|
|
|
|
|
+ == 3 * sizeof(std::uint16_t) + 2 * sizeof(std::uint32_t) + sizeof(float)
|
|
|
+ 3 * sizeof(RewardRangeRecord));
|
|
+ 3 * sizeof(RewardRangeRecord));
|
|
|
static_assert(sizeof(RewardItemRecord)
|
|
static_assert(sizeof(RewardItemRecord)
|
|
|
== 2 * sizeof(std::uint32_t) + 2 * sizeof(std::uint16_t) + sizeof(std::uint8_t)
|
|
== 2 * sizeof(std::uint32_t) + 2 * sizeof(std::uint16_t) + sizeof(std::uint8_t)
|